Fill in the blanks with code so that the program must accept three integers X, Y and Z as the input. The program must print the maximum integer among the three integers as the output.
Input Format:
The first line contains X, Y and Z separated by a space.
Output Format:
The first line contains the maximum integer among the three integers.
Example Input/Output :
Input:
589
9
Solution:
X, Y, Z = [int(val) for val in input().split()]
print(X if X>Y and X>Z else Y if Y>Z else Z )
No comments:
Post a Comment