//Find the entered value is positive or negative
#include<stdio.h>
int main()
{
double num;
printf("Enter num=");
scanf("%lf",&num);
printf("\nnum = %.2f\n",num);  // for print num upto two digits

(num<0.0)?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: