- public class B
- {
- 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<3; i++)
- {
- System.out.print((i+1)+"\t");
- for(int j=0; j<4; j++)
- {
- System.out.println(score[i][j]+"\t");
- }
- }
- }
- }
複製代碼 |