返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. void hello();
  5. int myPlus(int,int,int);
  6. void welcome(int x)
  7. {
  8.     for(int i=1;i<=x;i++){
  9.             cout<<"歡迎光臨"<<endl;
  10.         }
  11. }
  12. int main()
  13. {
  14.     int a;
  15.     cout<<"請輸入次數:";
  16.     cin>>a;
  17.         welcome(a);
  18.     system("pause");
  19.     return 0;   
  20. }
複製代碼

TOP

返回列表