8. Write a C program to find that the accepted number is Negative, or Positive or Zero.

#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("Enter the number you want to check:");
scanf("%d",&a);
if(a>0)
printf("%d is positive number",a);
else if(a<0)
printf("%d is negative number",a);
else
printf("%d is zero",a);
getch();
}

#OUTPUT:



Comments

Popular posts from this blog