Advertisement
endzie_fyrge

[16] Weird Formula

Jul 9th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. x = int(input("Enter the value of x: "))
  2. y = int(input("Enter the value of y: "))
  3.  
  4. if x <= y:
  5.     min = x
  6. else:
  7.     min = y
  8.  
  9. if x >= y:
  10.     max = x
  11. else:
  12.     max = y
  13.  
  14. z = (min + 0.5) / (1 + max ** 2)
  15.  
  16. print(f"The value of z is {z}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement