#include <iostream>
using namespace std;
int main()
{
int x,y;
cout << "请输入x" << endl;
cin >> x;
cout << "请输入y" << endl;
cin >> y;
if(x==y)
cout << "x=y";
else
if(x>y)
cout << "x>y";
else
cout << "x<y";
}
C++ 比较两个数的大小
于 2024-02-15 16:29:36 首次发布