how would one say a number is closer to another number than a another number if u know what I mean
Like say we have...
X
We wanna see if
X
Is closer to y
Or closer to w
x = int(input("Distance"))
my = int(input("Distance 2"))
w = int(input("Distance 3 "))
if x - my >= w - my:
print("w nearer ")
else:
print("my nearer")
Comments
Leave a comment