public static void main(String[] args){ System.out.println("N\t10*N\t100*N\t1000*N");?? ? ? ? ?for(int i=1;i<=5;i++){? ? ? ? ? ? ? ?System.out.print(i+"\t");?? ? ? ? ? ? ? ?for(int j=1;j<=3;j++){? ? ? ? ? ? ? ? ? ? ? int n = i;?? ? ? ? ? ? ? ? ? ? ? for(int k=1;k<=j;k++)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? n *= 10;?? ? ? ? ? ? ? ? ? ? ?System.out.print(n+"\t");? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ?System.out.println();?? ? ? ? }? ? }}
怎么把for循環(huán)改成while循環(huán)
慕粉02102016
2016-10-22 18:31:41