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))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS