public class MultiplicationTable {

 /**
  * @description 写一个方法,用一个for循环打印九九乘法表
  * @author  wangkun
  * @param args
  */
 public static void main(String[] args) {
  int i,j;
     for (i = 1 ; i <= 9 ; i ++){
          for(j = 1 ; j <= i ; j ++){
        System.out.print(j + "*" + i + "=" + i * j + " ");
          }
        System.out.println();
      }

 }
}

相关文章:

  • 2021-06-19
  • 2021-06-08
  • 2021-08-31
  • 2021-11-27
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
相关资源
相似解决方案