比较两个数的大小
#include<iostream>
usingnamespace std;
int main(){
int a,b;
cout<<"请输入两个数字:";
cin>>a>>b;
a>b?cout<<a<<"大于"<<b<<endl:cout<<b<<"大于"<<a<<endl;
return0;
}
比较两个数的大小
#include<iostream>
usingnamespace std;
int main(){
int a,b;
cout<<"请输入两个数字:";
cin>>a>>b;
a>b?cout<<a<<"大于"<<b<<endl:cout<<b<<"大于"<<a<<endl;
return0;
}