返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<cmath>
  4. using namespace std;
  5. void re(int a)
  6. {
  7.     for(int i=1;i<=a;i++)
  8.     {
  9.             cout<<"歡迎光鈴~~~"<<endl;
  10.     }
  11. }
  12. int main()
  13. {

  14.    int a;
  15.    cout<<"輸入次數:";
  16.    cin>>a;
  17.    re(a);
  18.    
  19.   
  20.   
  21.   system("pause");  
  22.   return 0;  
  23. }

複製代碼

TOP

返回列表