返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     int score[5][3]={{90,85,85},
  6.                      {70,75,80},
  7.                      {80,95,80},
  8.                      {70,95,75},
  9.                      {80,85,95}};
  10.     cout<<"座號\t國文\t英文\t數學\t"<<endl;
  11.     cout<<"========================================"<<endl;
  12.     for(int i=0;i<5;i++){
  13.         cout<<i+1<<"\t";
  14.         for(int j=0;j<3;j++){
  15.             cout<<score[i][j]<<"\t";
  16.         }cout<<endl;
  17.     }

  18.     system("pause");
  19.     return 0;
  20. }
複製代碼

TOP

返回列表