- #include<iostream>
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- float score[5][3]={{96,92,91},
- {94,98,92},
- {97,85,89},
- {97,95,91},
- {85,94,97}};
- cout<<"座號\t國文\t英文\t數學\t"<<endl;
- cout<<"============================"<<endl;
- for(int i=0;i<=4;i++)
- {
- cout<<i+1<<"\t";
- for(int j=0;j<=2;j++)
- {
- cout<<score[i][j]<<"\t";
- }
- cout<<endl;
- }
- system ("pause");
- return 0;
- }
複製代碼 |