Advertisement
Guest User

Wether Negative, Positive, Zero

a guest
May 17th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. double A, B;
  5. scanf("%lf", &A);
  6. if(A==0)
  7. {
  8. printf("There is Zero Number");
  9. }
  10. else if(A>0)
  11. {
  12. printf("There is Positive Number");
  13. }
  14. else
  15. {
  16. printf("There is Negative Number");
  17. }
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement