返回列表 發帖
  1. public class A {
  2.         public static void main(String[] args) {
  3.                 int score[][]={{90,85,85},
  4.                                 {56,48,91},
  5.                                 {87,56,55},
  6.                                 {23,25,53},
  7.                                 {88,82,95}};
  8.                 System.out.println("座號\t國文\t英文\t數學");
  9.                 System.out.println("============================");
  10.                 for(int i=0; i<5; i++){
  11.                         System.out.print((i+1)+"\t");
  12.                         for(int j=0; j<3; j++)
  13.                                 System.out.print(score[i][j]+"\t");
  14.                         System.out.println();
  15.                 }       
  16.         }
  17. }
複製代碼

TOP

返回列表