返回列表 發帖
  1. public class Ch {

  2.         public static void main(String[] args) {
  3.                 // TODO 自動產生的方法 Stub
  4.              int i=1,j=1;
  5.              while(i<=9)
  6.              {
  7.                      while(j<=9)
  8.                      {
  9.                              System.out.print(i+"*"+j+"="+i*j+"\t");
  10.                              j++;
  11.                      }
  12.                      i++;
  13.                      j=1;
  14.                      System.out.println();
  15.              }
  16.         }

  17. }
複製代碼

TOP

返回列表