- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
-
- int n[5][3]={{90,85,85},{70,75,80},{70,80,96},{100,61,43},{98,32,47}};
- cout<<"座號\t國文\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<<n[i][j]<<"\t";
- }
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |