返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main ()

  5. {
  6.     int x,y;
  7.     cout<<"PLEASE SET THE X"<<endl;
  8.     cin>>x;
  9.     cout<<"PLEASE SET THE Y"<<endl;
  10.     cin>>y;
  11.    
  12.     if(x<y)
  13.     {
  14.            cout<<"Y IS BIGGER THAN X"<<endl;
  15.     }
  16.     else if (x>y)
  17.     {
  18.          cout<<"X IS BIGGER THAN Y"<<endl;
  19.     }
  20.     else
  21.     {
  22.         cout<<"X EQUALS Y"<<endl;
  23.     }
  24.    
  25.     system("pause");
  26.     return 0;
  27. }
複製代碼

TOP

返回列表