比较大小

#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;
}

posted @ 2023-04-10 20:53  不会JAVA的小袁  阅读(22)  评论(0)    收藏  举报