Java九九乘法表
代码如下:
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("\t");
}
System.out.println(" ");
}
}
运行结果:
本文来自博客园,作者:程序员hg,转载请注明原文链接:https://www.cnblogs.com/hg-blogs/p/15449680.html