- public class Ch35
- {
- public static void main(String args[])
- {
- int score[][]={{100,100,100},
- {0,0,0},
- {0,1,0},
- {1,0,1},
- {87,87,87}};
- 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();
- }
- }
- }
複製代碼 |