大三学长带我学习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");
}
}
}

 

 

posted on 2013-01-16 16:52  邵邵  阅读(146)  评论(0编辑  收藏  举报

淘宝美工兼职招聘