Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float a, b;
- printf("Enter the number: ");
- scanf("%f", &a);
- if (0 < a)
- printf("%.3f is positive", a);
- else if (a < 0)
- printf("%.3f is negative", a);
- else
- printf("%.3f is zero", b, a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement