竞赛
考级
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b){ cout<<">"<<endl; }else if(a==b){ cout<<"="<<endl; }else if(a<b){ cout<<"<"<<endl; } return 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{}。
#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; }
#include<iostream> 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 x,y; cin>>x>>y; if (x > y){ cout<<">"; } else if(x < y){ cout<<"<"; } else{ cout<<"="; } return 0; }
#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<<"<"; } }
#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; }
#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; }
#include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a>b){ cout<<">"; }else if(a==b){ cout<<"="; }else if(a<b){ cout<<"<"; } return 0; }
共49条
提交答案之后,这里将显示提交结果~