-
-
Save kirilltobola/4ce45a8ea276e6c413990d8a41509f9f to your computer and use it in GitHub Desktop.
HW FOAT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eps = 10 ** -12 | |
a, b, c, d = map(float, input().split()) | |
if abs((a+b) - (c+d)) < eps: | |
print('equals') | |
elif (a+b) - (c+d) > eps: | |
print('a+b greater') | |
elif (a+b) - (c+d) < eps: | |
print('c+d greater') | |
print(a+b, c+d, (a+b) - (c+d)) | |
#10.2 4.3 4.3 10.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment