毋二妞的心肝大宝贝

导航

九九乘法表

package struct;

public class ForText3 {
public static void main(String[] args) {
// for循环打九九乘法表
for (int i = 1; i < 10; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(j+"*"+i+"="+(j*i)+"\t");
}
System.out.println();
}
}
}

posted on 2022-01-07 16:05  毋二妞的心肝大宝贝  阅读(48)  评论(0编辑  收藏  举报