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

TOP

返回列表