Program to Check if number is Negative or Positive

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr();
printf("\nEnter any No.");
scanf("%d",&num);
if (num>=0)
{
printf("\nPositive");
}
else
{
printf("\nNegatve");
}
getch();
}

Leave a Reply