public class Lianxi { public static void main(String[] args) { for (int i = 0; i <= 9; i++) { for (int j = 1; j <= i; j++) { System.out.print(i + "*" + j + "=" + i * j + " "); } System.out.println(); } } }
Java打印九九乘法表
最新推荐文章于 2024-09-09 14:40:58 发布
public class Lianxi { public static void main(String[] args) { for (int i = 0; i <= 9; i++) { for (int j = 1; j <= i; j++) { System.out.print(i + "*" + j + "=" + i * j + " "); } System.out.println(); } } }