返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6. int a,b;
  7. cout<<"請輸入a的成績";
  8. cin>>a;
  9. cout<<"請輸入b的成績";
  10. cin>>b;
  11. if(a==100)
  12. {cout<<"滿分";
  13. }
  14. else if (b=60)
  15. {cout<<"及格";}
  16. else{cout<<"不及格";}               
  17. system("pause");
  18.     return 0;
  19. }
複製代碼

TOP

返回列表