返回列表 發帖
刪除所有資料dev c++

TOP

#include<iostream>
using namespace std;
int main()
{
     int answer;
     cout<<"猜猜看黃崇維幾公分?"<<endl;
     cout<<"(1)52公分 (2)100公分 (3)134公分 (4)184公分"<<endl;
     cout<<"請作答...";
     cin>>answer;
     cout<<endl;
         if(answer==1)
         {
                    cout<<"我又不是小矮人~";
         }
         else if(answer==2)
         {
                    cout<<"我又不是矮冬瓜~";
         }
         else if(answer==3)
         {
                    cout<<"對嘛!這樣才像話!";
         }
         else if(answer==4)
         {
                    cout<<"我又不是大巨人!";
         }
         else
         {
                    cout<<"輸入錯誤!";
         }
    cout<<endl;
    system("pause");
    return 0;
}

TOP

返回列表