秒了
2025-11-09 13:56:40
发布于:上海
0阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
if(x>y){
cout<<">";
}
else if(x==y){
cout<<"=";
}
else{
cout<<"<";
}
return 0;
}
先设置变量,然后在输入,接着if()比较,最后一个可以不用else if ,直接else{}。
这里空空如也



有帮助,赞一个