1.编写一个java应用程序,用循环结构打印如下的数值列表: N 10*N 100*N 1000*N 1 10 100 1000 2 20 200 2
1.编写一个java应用程序,用循环结构打印如下的数值列表: N 10*N 100*N 1000*N 1 10 100 1000 2 20 200 2
日期:2011-03-10 13:17:55 人气:1
lass A{
public static void main(String args[]){
for (int i=1; i<7;i++){
for ( int j=1; j<=4;j++){
if(i==1){
if(j==1)System.out.print("N ");
else System.out.print((int)Math.pow(10,j-1)+"*N ");