- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int num[5][4]={{1,90,85,85},{2,70,85,80},{3,80,85,95},{4,55,66,77},{5,44,33,22}};
- cout<<"座號/t 國文/t 數學/t 英文/t "<<endl;
- cout<<"=============================="<<endl;
- for(int i=0;i<5;i++)
- {
- for(int j=0;j<4;j++)
- {
- cout<<num[i][j]<<"\t";
- }
- cout<<endl;
- }
- system("pause");
- return 0;
- }
-
複製代碼 |