返回列表 發帖
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.       cout<<"☆☆☆☆☆☆☆☆☆" <<endl;
  6.       float x;
  7.       cout<<"☆請輸入你的成績:";
  8.       cin>>x;
  9.       cout<<"☆你輸入的分數為"<<x<<endl;
  10.       if(x==100)
  11.       {
  12.              cout<<"☆恭喜你考滿分!"<<endl;
  13.       }
  14.       else if( x >=80 && x<100)
  15.       {
  16.              cout<<"☆加油再努力一點滿分就是你的了!"<<endl;
  17.       }
  18.       else if(x<=60 && x>=0)
  19.       {
  20.              cout<<"☆加油........!"<<endl;
  21.       }
  22.       else
  23.       {
  24.              cout<<"☆去死!"<<endl;
  25.       }
  26.       cout<<"☆☆☆☆☆☆☆☆☆"<<endl ;
  27.       
  28.       system("pause");
  29.       return 0;
  30.       
  31. }
複製代碼

TOP

返回列表