返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int start,end;
  7.     cout<<"在此輸入起始值:";
  8.     cin>>start;
  9.     cout<<endl;
  10.     cout<<"請輸入結束值:";
  11.     cin>>end;
  12.     cout<<endl;
  13.     for(int i=start;i<=end;i++)
  14.     {
  15.         cout<<char(i);      
  16.     }
  17.     cout<<endl;
  18.     system("pause");   
  19.     return 0;
  20. }
複製代碼

TOP

返回列表