program to find entered number is positive or negative.
void main()
{
int a;
clrscr();
printf("enter any number=");
scanf("%d",&a);
if(a>0)
{
printf("given number is positive");
}
else
{
printf("given number is negative");
}
getch();
}
output :
enter any number=-1
given number is negative