返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int score[5][3]={{90,100,69},
  7.                      {80,97,68},
  8.                      {100,70,85},
  9.                      {86,96,95},
  10.                      {99,82,68}};
  11.     cout<<"座號\t國文\t英文\t數學"<<endl;
  12.     cout<<"==============================="<<endl;
  13.     for(int i=0;i<5;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

返回列表