write a C program to find whether entered value is positive , negative or zero
Answers
Answered by
1
Explanation:
#include <stdio.h>
void main()
{
int num;
printf("Input a number :");
scanf("%d", &num);
if (num >= 0)
printf("%d is a positive number \n", num);
else
printf("%d is a negative number \n", num);
}
Sample Output:
Input a number :15
15 is a positive number
Similar questions