#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
int N;
cout<<"Enter a Number N ";
cin>>N;
if (N>=0)
{
cout<<"The Number is +ve";
}
else if(N<0)
{
cout<<"The Number is -ve";
}
getch();
}
#include<iostream.h>
void main()
{
clrscr();
int N;
cout<<"Enter a Number N ";
cin>>N;
if (N>=0)
{
cout<<"The Number is +ve";
}
else if(N<0)
{
cout<<"The Number is -ve";
}
getch();
}
No comments:
Post a Comment