或者#include <iostream>using namespace std;
void main(){int a;cout<<"please enter:";cin>>a;if(a!=0){if(a>0)cout<<a<<">0"<<endl;else cout<<a<<"<0"<<endl;}else cout<<a<<"=0"<<endl;}