- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int a;
- cout<<"請輸入你的考試成績,決定你的身分"<<endl;
- cin>>a;
- if(a<=59&&a>0)
- cout<<"你是棒棒der村民!"<<endl;
- else if(a<=84&&a>=60)
- cout<<"你是神準der預言家!"<<endl;
- else if(a<=100&&a>=85)
- cout<<"你是正義der女巫!"<<endl;
- else if(a>100&&a<500||a<0)
- cout<<"你是超爛der村民,你被殺了!!!"<<endl;
- else if(a>=500)
- cout<<"哈哈笑你!你是狼人,被豬殺了!!!"<<endl;
- system("pause");
- return 0;
- }
複製代碼 |