Mid2 2nd_Largest_of_3_number.
a=int(input("Enter a number: "))
b=int(input("Enter a number: "))
c=int(input("Enter a number: "))
if a>b:
if a>c:
max=a
else:
max=c
else:
if b>c:
max=b
else:
max=c
print(max)
#output:
Enter a number: 3
Enter a number: 5
Enter a number: 4
5
Comments
Post a Comment