A program to check number is positive, nagtive or zero.
#include<stdio.h>;
void main()
{
int number;
printf("Enter a number :");
scanf("%d",&number);
if(number >; 0)
printf("n The given number is Postive. n");
if(number < 0)
printf("n The given number is Pagtive. n");
if(number == 0)
printf("n The given number is Zero. n");
}
OUTPUT : 1.
Enter a number :4
The given number is Postive.
2.
Enter a number :-98
The given number is Nagtive.
3.
Enter a number :0
The given number is Zero.