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();
}