- package test;
- public class Test
- {
- public static void main(String args[])
- {
- int score[][]={{90,85,85},{56,48,91},{87,56,55},{23,25,53},{88,82,95}};
- 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();
- }
- }
- }
複製代碼 |