public class jiujiu { public static void main(String[] args) { int i = 0; int j = 0; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) System.out.print(i + "*" + j + "=" + i * j + "\t"); System.out.println(); } } } // 不出现重复的乘积(下三角) public class jiujiu { public static void main(String[] args) { int i = 0; int j = 0; for (i = 1; i <= 9; i++) { for (j = 1; j <= i; j++) System.out.print(i + "*" + j + "=" + i * j + "\t"); System.out.println(); } } } // 上三角 public class jiujiu { public static void main(String[] args) { int i = 0; int j = 0; for (i = 1; i <= 9; i++) { for (j = i; j <= 9; j++) System.out.print(i + "*" + j + "=" + i * j + "\t"); System.out.println(); } } }
by: 一个想要做上海贼王的男人 发表于:2017-08-30 23:20:51 顶(0) | 踩(0) 回复
初级程序员
by: 一个想要做上海贼王的男人 发表于:2017-08-30 23:20:41 顶(0) | 踩(0) 回复
沙发
回复评论