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