- import java.util.Scanner;
- public class Ch01
- {
- public static void main(String args[])
- {
- int score[][]={{1,2,3},
- {0,100,0},
- {0,0,0},
- {65,2,21},
- {0,3,1}};
- System.out.println("座號\t國文\t英文\t數學");
- System.out.println("============================");
- for(int i=0; i<5; i++)
- {
- System.out.print((i+1)+"\t");
- for(int j=0; j<3; j++)
- System.out.print(score[i][j]+"\t");
- System.out.println();
- }
- }
- }
複製代碼 |