上代码,这是一个输入两个数,可以判断大小的程序
#include<iostream>
using namespace std;
int main()
{
int a,s,d,f,g,h,j,k,l;
cout<<"请输入两个不大于10000的数,也不要输入其他:"<<endl;
cin>> a ;
cin >> s ;
if (a>s){
cout<< a << ">"<< s <<endl;
}
if (a==s){
cout<<a<<"="<<s<<endl;
}
else{
cout<<a<<"<"<<s<<endl;
}
return 0;
}