返回列表 發帖
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.    int a,b;
  6.    cout<<"請輸入第1個數"<<endl;
  7.    cin>>a;
  8.    cout<<"請輸入第2個數"<<endl;
  9.    cin>>b;   
  10.    if(a>b)
  11.    {
  12.      cout<<a<<">"<<b;  
  13.    }else if(b>a)
  14.    {
  15.      cout<<b<<">"<<a;  
  16.    }else
  17.    {
  18.      cout<<a<<"="<<b;   
  19.         
  20.    }
  21.   system("pause");
  22.   return 0;   
  23. }
複製代碼

TOP

返回列表