返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {



  6.     int a[5][3]={{90,85,85},
  7.                      {70,75,80},
  8.                      {80,95,80},
  9.                      {70,95,75},
  10.                      {80,85,95}};
  11.     cout<<"座號\t國文\t英文\t數學"<<endl;
  12.     cout<<"============================"<<endl;

  13.     for(int i=0;i<=4;i++){
  14.             cout<<i+1<<"\t";

  15.         for(int j=0;j<=2;j++){

  16.             cout<<a[i][j]<<"\t";
  17.         }
  18.         cout<<endl;

  19.     }




  20.     system("pause");
  21.     return 0;
  22. }
複製代碼

TOP

返回列表