//Find the entered value is positive or negative
#include<stdio.h>

int main()
{
double num;
printf("Enter num=");
scanf("%lf",&num);
printf("\nnum=%lf\n",num);
(num<=0.0)?((num==0.0)?printf("Its Zero"):
printf("Its negative")):printf("Its positive");
return 0;
}

Embed on website

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