C Program to Check Whether a Number is Positive or Negative

Example
#include <conio.h>

#include <stdio.h>

void main()
{
int A;
printf("Enter the number A: ");
scanf("%d", &A);
if (A > 0)
printf("%d is positive.", A);
else
printf("%d is negative.", A);

getch();
}
Program Output

     Enter the number A : 54

     54 is positive.