Answer to Question #286948 in Python for Aalap

Question #286948

Find the greatest of 4 numbers using if-elif



1
Expert's answer
2022-01-12T18:10:54-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS