#Here is the use of And operator in Detail...........
n1=input('Enter First Number: ')
n2=input('Enter Second Number: ')
n3=input('Enter Third Number: ')
if n1>n2 and n1> n3:
print n1, 'is greater.'
elif n2>n3 and n2>n1:
print n2, 'is greater.'
elif n3> n1 and n3>n2:
print n3, 'is greater.'
else: print 'Numbers are same.'
No comments:
Post a Comment