- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int score[5][3]={{90,100,69},
- {80,97,68},
- {100,70,85},
- {86,96,95},
- {99,82,68}};
- cout<<"座號\t國文\t英文\t數學"<<endl;
- cout<<"==============================="<<endl;
- for(int i=0;i<5;i++)
- {
- cout<<i+1<<"\t";
- for(int j=0;j<3;j++)
- cout<<score[i][j]<<"\t";
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |