In For loop, three actions are performed that is initialization, condition, Increment/decrement.
This is the main feature that are not found in any other loop.
public static void main(String aa)
System.out.println("2 to power-n n 2 to power n");
System.out.println(" "+q+" "+n+" "+p);