返回列表 發帖
本帖最後由 t2364705 於 2012-8-9 10:55 編輯
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.      int c;
  6.      cout<<"請輸入你要幾顆星星: ";
  7.      cin>>c;
  8.      for(int i=1; i<=c;i++)
  9.      {
  10.          cout<<"*";        
  11.      }
  12.      cout<<endl;
  13.      system("pause");
  14.      return 0;   
  15. }
複製代碼

TOP

返回列表