返回列表 發帖
  1. #include <iostream>

  2. using namespace std ;

  3. int main()
  4. {
  5.      int x;
  6.     cout<<"請問您要幾顆星星: ";
  7.     cin>>x;
  8.   for(int i=1; i<=x; i++)
  9.      {
  10.           cout<<"*";
  11.      }
  12. system("pause");
  13. return 0;
  14. }
複製代碼

TOP

返回列表