Question #286948

Find the greatest of 4 numbers using if-elif



Expert's answer

a, b, c, d = map(int, input().split())

if a > b:
  print(max(a, c, d))
elif b > a:
  print(max(b, c, d))
LATEST TUTORIALS
APPROVED BY CLIENTS