public class table {
    public static void main(String[] args) {
        for (int x = 1; x<=9 ; x++){//控制行数
            for (int y = 1; y<=x;y++){
                int result = x*y;
                System.out.printf("%d*%d=%d\t",x,y,result);
                /*System.out.print(x+"*"+y+"="+(x*y)+"\t");*/     // \t 为制表符
            }
            System.out.println("");//换行
        }
    }
}
使用Java编写九九乘法表

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
  • 2021-12-09
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2021-12-14
  • 2021-09-13
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案