返回列表 發帖
  1. #include<iostream>   
  2. #include<cstdlib>      
  3. using namespace std;
  4. void bp(int);
  5. int main()   
  6. {
  7.    int n;
  8.    cout<<"請輸入次數:"<<endl;
  9.    cin>>n;
  10.    bp(n);
  11.     system("pause");   
  12.     return 0;            


  13. }

  14. void bp(int n)
  15. {
  16.      for(int j=1;j<=n;j++)
  17.      {
  18.       cout<<"◆歡迎光臨~~~◆" <<endl;     
  19.      }


  20. }
複製代碼

TOP

返回列表