Answer the question
In order to leave comments, you need to log in
Where is the incorrectness of logic - in the program for the output of the largest number?
a, b, c = [input() for _ in range(3)]
if a > b and a > c:
print(a)
elif b > a and b > c:
print(b)
elif c > a and c > b:
print(c)
Answer the question
In order to leave comments, you need to log in
Logic is all right. Changed the first line to:
Then I changed 11 to different variables. In all cases, the program outputs the largest number.
It's quite another thing that I don't understand what the code is supposed to do:
Please explain.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question