#include <stdio.h>
int main(){
//Write a C program to check whether a number is negative, positive or zero.
int no;
printf("enter a number: ");
scanf("%d", &no);
if ( no > 0 ) {
printf("the number is +ve");
}
else if ( no < 0 ) {
printf("the number is -ve");
}
else {
printf("the number is 0");
}
return 0;
}
0 Comments