Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = int(input("Enter the value of x: "))
- y = int(input("Enter the value of y: "))
- if x <= y:
- min = x
- else:
- min = y
- if x >= y:
- max = x
- else:
- max = y
- z = (min + 0.5) / (1 + max ** 2)
- print(f"The value of z is {z}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement