返回列表 發帖
  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.      cout<<endl;
  13.      system("pause");
  14.      return 0;   
  15. }
複製代碼

TOP

返回列表