返回列表 發帖
  1. public class Ch35
  2. {
  3.     public static void main(String args[])
  4.     {
  5.          int score[][]={{100,100,100},
  6.                         {0,0,0},
  7.                         {0,1,0},
  8.                         {1,0,1},
  9.                         {87,87,87}};
  10.          System.out.println("座號\t國文\t英文\t數學");
  11.          System.out.println("============================");
  12.          for(int i=0; i<5; i++)
  13.          {
  14.              System.out.print((i+1)+"\t");
  15.              for(int j=0; j<3; j++)
  16.                   System.out.print(score[i][j]+"\t");
  17.              System.out.println();
  18.          }
  19.     }
  20. }
複製代碼

TOP

返回列表