URI Online Judge Problem 1013 The Greatest Solution using Python Programming Language.
Make a program that reads 3 integer values and present the greatest one followed by the message "eh o maior". Use the following formula:
Input
The input file contains 3 integer values.
Output
Print the greatest of these three values followed by a space and the message “eh o maior”.
Input Samples | Output Samples |
7 14 106
|
106 eh o maior
|
217 14 6
|
217 eh o maior
|
Solution :
A,B,C = map(int, input().split());
if A>B and A>C:
print("%d eh o maior"%A);
elif B>A and B>C:
print("%d eh o maior"%B);
else:
print("%d eh o maior"%C);
Uri compiler shows its wrong. I did this before seeing this answer
ReplyDelete