返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.                 unsigned  long  long  s=0,o;
  7.                 re:
  8.                 cout<<"請問要數第幾頭牛";
  9.                        
  10.                
  11.                 cin>>o;
  12.         for(s=1;s<=o;s++)
  13.         {
  14.        
  15.                 cout<<s<<"頭牛"<<s<<"張嘴,"<<s*2<<"顆眼睛"<<s*4<<"隻腳!!!!!!!!!!!!!!!!!! ! !"<<"\t";
  16.                 cout<<endl;        
  17.     }
  18. goto re;

  19.     system("pause");

  20.     return 0;
  21.     }
複製代碼

TOP

返回列表