返回列表 發帖
本帖最後由 tonyh 於 2020-11-21 20:58 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {  
  6.     int i,j,score[5][3]={{90,88,92},
  7.                      {1,8,4},
  8.                      {55,28,12},
  9.                      {63,55,78},
  10.                      {91,82,99},};
  11.     cout<<"座號\t國語\t英文\t數學\t"<<endl;                                                      
  12.     cout<<"+++++++++++++++++++++++++++"<<endl;
  13.     for(int i=0; i<=4;i++)
  14.     {
  15.         cout<<i+1<<"\t";
  16.         for(int j=0; j<3; j++)
  17.              cout<<score[i][j]<<"\t";
  18.         cout<<endl;
  19.     }         
  20.     system("pause");
  21.     return 0;   
  22. }      
複製代碼

TOP

返回列表