竞赛
考级
#include <bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y){ cout<<">"; } else if(x==y){ cout<<"="; } else{ cout<<"<"; } return 0; }
一枚button
详细题解又来了!!! 首先看一下题: 他是要我们求比较大小后输出 那很明显,可以用分支if语句来判断 首先,最基本的创建 创建a和b 然后就是大家最喜欢的分值判断了,如果a>b,那就输出“>”。 最后,直接else收尾,根本不需要比较 最后是AC代码 下次再见!!!886
KFCKUN
关注我, 每天学一点
末影珍珠
法兰西玫瑰
chaizechen
#include<iostream> using namespace std; int main(){ int a,b; cin >> a >> b; if(a>b){ cout << ">"; }else if(a==b){ cout << "="; }else{ cout << "<"; } return 0; }
《切尔诺贝利》八年土著!
阿瓦达啃大瓜
为了让帅童理解此题的简单方法,编写了此题的代码: 先看这两行代码: 还是老样子先定义,再输入一遍就OK了,接下来三个判断条件: 那个成立就使那个呗。 你听懂了吗? 关注贺子言!
贺子言minecraft
#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; }
金杰錱
139****3823
#include <iostream> using namespace std; int main() { int x,y; cin>>x>>y; if(x>y)cout<<">"; else if(x==y)cout<<"="; else if(x<y)cout<<"<"; return 0; }
sprunki
黑客_天之神_ZDZL_zsy
空降 : CP002973 > 此题题解如下: > 总结 此题考验的是同学对判断语句的运用熟练度,很适合初学者练习 难度:★☆☆☆☆
Eren.
代码: #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; }
复仇者_风驰.少年'''',互关
简单,求个赞qwq
嘻嘻(陆昭文)
西伯利亚种土豆
#include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x==y){ cout<<"="; }else if(x>y){ cout<<">"; }else{ cout<<"<"; } }
菜
在等于时,写的是”“。 #include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b){ cout<<">"; } else if(ab){ cout<<"="; } else{ cout<<"<"; } }
复仇者_鑫森淼焱垚
Collapseのbna
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>> a>>b; if(a<b){cout<<"<";} else if(a>b){ cout<<">"; }else{ cout<<"="; } }
辣子狗(●'◡'●)😊😊😊
共35条