#include
using namespace std;
void main()
{
int x, y;
cout << “请输入x\t” << “请输入y\t” << endl;
cin >> x >> y;
if (x > y)cout << x << endl;
else cout << y << endl;
system(“pause”);
}
比较两个数的大小
最新推荐文章于 2023-06-14 16:23:13 发布
#include
using namespace std;
void main()
{
int x, y;
cout << “请输入x\t” << “请输入y\t” << endl;
cin >> x >> y;
if (x > y)cout << x << endl;
else cout << y << endl;
system(“pause”);
}