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

  2.         public static void main(String[] args) {
  3.                 // TODO 自動產生的方法 Stub
  4.                 int i = 1, j = 1;

  5.                 while (i <= 9) {
  6.                         while (j <= 9)

  7.                         {
  8.                                 System.out.print(i + "*" + j + "=" + i * j + "\t");
  9.                                 j++;
  10.                         }
  11.                         i++;
  12.                         j = 1;
  13.                         System.out.println();
  14.                 }
  15.         }
  16. }
複製代碼

TOP

返回列表