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

TOP

返回列表