#include <iostream>
using namespace std;
int main()
{
int x;
int y;
cout << "請輸入 x " << endl;
cin >> x;
cout << "請輸入 y " << endl;
cin >> y;
cout << "您輸入的 x 為" << x << " ,y 為 " << y << endl;
if(x>y)
{
cout << "x 大於 y "<< endl;
}
else if(x<y)
{
cout << "x 小於 y "<< endl;
}
else
{
cout << "x 等於 y "<< endl;
}
system("pause");
return 0;
} |