//Entered value is positive, negative or zero using
//else-if ladder
#include<stdio.h>
int main()
{
int n;
printf("Enter n=");
scanf("%d",&n);
if(n>0)
printf("\nIts positive");
else if(n<0)
printf("\nIts negative");
else
printf("\nIts Zero");
return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: