public class HelloWorld {
public static void main(String []args) {
System.out.println("a a^2 a^3");
int i;
for(i=0;i<4;i++){
int j=1;
System.out.println(j j*j j*j*j);
j++;
}
}
}
运行结果:
public class HelloWorld {
public static void main(String []args) {
System.out.println("a a^2 a^3");
int i;
for(i=0;i<4;i++){
int j=1;
System.out.println(j j*j j*j*j);
j++;
}
}
}
运行结果: