java,for穷举,99乘法表


public class t8 {

 public static void main(String[] args) {
 //输出99乘法表
 for(int m=1;m<=9;m++)
 {
  for(int n=1;n<=m;n++)
  {
   System.out.print(m+"*"+n+"="+(m*n)+" ");
  }
  System.out.println();
 }
 }

}

原文地址:https://www.cnblogs.com/jiang2538406936/p/5219484.html