返回列表 發帖
  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.     if(a>b)
  11. {
  12.     cout<<"a>b";
  13. }else if(a<b)
  14. {
  15.     cout<<"a<b"
  16. }else
  17. {
  18.      cout<<"a=b"
  19. }
  20.     cout<<endl;
  21.     system("pause")
  22.     return 0;                     
  23. }
複製代碼

TOP

返回列表