Print Friendly and PDF

#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;

}
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: