#include <stdio.h>
int main()
{
float num;
printf("Enter a number: ");
scanf("%f",&num);
if (num<=0)
{
if (num==0)
printf("You entered zero.");
else
printf("%.2f is negative.",num);
}
else
printf("%.2f is positive.",num);
return 0;
}
All Computer Programming languages and its basics (C,C++,JAVA,PHP,SAP(ALL MODULES)
Subscribe to:
Post Comments (Atom)
Comment
Comment Box is loading comments...
No comments:
Post a Comment