返回列表 發帖
  1. package test;

  2. public class Test
  3. {
  4.     public static void main(String args[])
  5.     {
  6.          int score[][]={{90,85,85},{56,48,91},{87,56,55},{23,25,53},{88,82,95}};
  7.          System.out.println("座號\t國文\t英文\t數學");
  8.          System.out.println("============================");
  9.          for(int i=0; i<5; i++)
  10.          {
  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

返回列表