- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
-
- int n[5][3]={{1,2,3},{4,5,6},{7,8,9},{10,11,12},{13,14,15}};
- cout<<"No.\t國\t英\t社"<<endl;
- cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
- int i=0;
- while(i<5)
- {
- cout<<i+1<<"\t";
- for(int j=0;j<3;j++)
- {
- cout<<n[i][j]<<"\t";
- }
- i++;
- cout<<"\n";
- }
-
- system("pause");
- return 0;
- }
複製代碼 |