返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main ()
  5. {
  6.    int x=0;
  7.    
  8.    for(int a=1; a<=3; a++)
  9.    {
  10.       for(int b=1; b<=3; b++)
  11.      {
  12.         for(int c=1; c<=3; c++)
  13.        {
  14.             for(int d=1; d<=3; d++)
  15.            {
  16.                x++;
  17.                cout<<x<<endl;
  18.            }
  19.        }      
  20.      }         
  21.    }         
  22.      
  23.    system("pause");
  24.    return 0;   
  25. }   
複製代碼

TOP

返回列表