#include<iostream> using namespace std; int main ( ) { int n; cout<<"enter number"<<endl; cin>>n; if(n > 0) cout<<"number is positive"<<endl; if(n < 0) cout<<"number is negative"<<endl; if(n==0) cout<<"number is zero "<<endl; }

Subscribe to:
Post Comments (Atom)
Post A Comment:
0 comments: