返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入你的考試成績,決定你的身分"<<endl;
  8.     cin>>a;  
  9.     if(a<=59&&a>0)
  10.     cout<<"你是棒棒der村民!"<<endl;
  11.     else if(a<=84&&a>=60)
  12.     cout<<"你是神準der預言家!"<<endl;
  13.     else if(a<=100&&a>=85)   
  14.     cout<<"你是正義der女巫!"<<endl;
  15.     else if(a>100&&a<500||a<0)  
  16.     cout<<"你是超爛der村民,你被殺了!!!"<<endl;
  17.     else if(a>=500)
  18.     cout<<"哈哈笑你!你是狼人,被豬殺了!!!"<<endl;
  19.     system("pause");
  20.     return 0;
  21. }
複製代碼
林祐霆

TOP

返回列表