Advertisement
aiNayan

3(ii)

Nov 3rd, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. float a, b;
  5. printf("Enter the number: ");
  6. scanf("%f", &a);
  7. if (0 < a)
  8. printf("%.3f is positive", a);
  9. else if (a < 0)
  10. printf("%.3f is negative", a);
  11. else
  12. printf("%.3f is zero", b, a);
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement