Advertisement
endzie_fyrge

[17] Highest Value

Jul 9th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. a = input("Enter the value of a: ")
  2. b = input("Enter the value of b: ")
  3. c = input("Enter the value of c: ")
  4.  
  5. if a >= b and a >= c:
  6.     max = a
  7. elif b >= a and b >= c:
  8.     max = b
  9. elif c >= a and c >= b:
  10.     max = c
  11.  
  12. print(f"The highest value is: {max}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement