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

TOP

返回列表