Skip to content

Instantly share code, notes, and snippets.

@kirilltobola
Created October 21, 2021 17:11
Show Gist options
  • Save kirilltobola/4ce45a8ea276e6c413990d8a41509f9f to your computer and use it in GitHub Desktop.
Save kirilltobola/4ce45a8ea276e6c413990d8a41509f9f to your computer and use it in GitHub Desktop.
HW FOAT
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