大三学长带我学习JAVA.作业7 利用for循环打印 9*9 表

2013年1月16日星期三

利用for循环打印 9*9  表

public class Zhouhai {

public static void main(String[] args) {

for(int i = 1; i <= 9; i++) {
for(int j = 1; j <= i; j++) {

System.out.print(i+"*"+j+"="+(i*j)+" ");
}
System.out.print("\n");
}
}
}

原文地址:https://www.cnblogs.com/shaoshao/p/2863046.html