#include<iostream>
using namespace std;
int main()
{
int x,y;
cout<<"Enter x and y:";
cin>>x>>y;
if(x!=y)
if(x>y)
cout<<"x>y"<<endl;
else
cout<<"x<y"<<endl;
else
cout<<"x=y"<<endl;
return 0;
}
比较大小
发布时间 2023-04-10 20:57:47作者: Misa先生
#include<iostream>
using namespace std;
int main()
{
int x,y;
cout<<"Enter x and y:";
cin>>x>>y;
if(x!=y)
if(x>y)
cout<<"x>y"<<endl;
else
cout<<"x<y"<<endl;
else
cout<<"x=y"<<endl;
return 0;
}