package demo04; public class Demo01 { public static void main(String[] args) { for (int i = 1;i<=9;i++){ for (int j = 1;j<=i;j++){ System.out.print(j+"*"+i+"="+j*i+"\t"); // System.out.print不产生新行 // \t是补全当前字符串长度到8的整数倍 } System.out.println(); //输出完信息后会自动换行,产生一个新行 } } }
08-30
7729
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-28
6737
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-21
1261
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-07
3141
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-27
314
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-22
1152
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-12
6997
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交