Advertisement
aiNayan

3(i)

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