返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    
  7.     int n[5][3]={{1,2,3},{4,5,6},{7,8,9},{10,11,12},{13,14,15}};
  8.     cout<<"No.\t國\t英\t社"<<endl;
  9.     cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
  10.     int i=0;
  11.     while(i<5)
  12.     {
  13.          cout<<i+1<<"\t";
  14.          for(int j=0;j<3;j++)
  15.          {
  16.              cout<<n[i][j]<<"\t";            
  17.          }
  18.          i++;
  19.          cout<<"\n";
  20.     }
  21.    
  22.       system("pause");
  23.     return 0;   
  24. }
複製代碼

TOP

返回列表