返回列表 發帖

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;

  4. int main()
  5. {
  6.         re:
  7.         int j;
  8.         cout<<"請問要數到第幾隻蟑螂? 母湯太大喔~"<<endl;
  9.         cin>>j;
  10.         for(int i = 1; i <= j; i++ )
  11.         {
  12.                 cout<<i<<"隻蟑螂"<<i<<"個嘴"<<i*2<<"顆眼睛"<<i*6<<"隻腳"<<endl;
  13.         }
  14.         goto re;
  15.         system("pause");
  16.         return 0;
  17. }
複製代碼

TOP

返回列表