返回列表 發帖
本帖最後由 林祐霆 於 2019-8-31 11:40 編輯
  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.         cin>>o;
  10.     for(s=1;s<=o;s++)
  11.     {
  12.         cout<<s<<"隻蜘蛛"<<s<<"張嘴,"<<s*2<<"顆眼睛"<<s*8<<"條腿!"<<"\t";
  13.         cout<<endl;
  14.     }
  15.     goto re;
  16.     system("pause");
  17.     return 0;   
  18. }
複製代碼
林祐霆

TOP

返回列表