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