Check Whether The Number Negative Or Positive
#include<constream.h>
void main()
{
int a;
clrscr();
cout<<"Enter The Number To Check Whether The Number Negative Or Positive :";
cin>>a;
if(a>=0)
cout<<"Positive Number";
else
cout<<"Negative Number";
getch();
}
Friday, April 18, 2014
Subscribe to:
Post Comments (Atom)







No comments:
Post a Comment