11.WAP to accept any three unequal integer and find integer and find largest one.
Code:
print("Enter any 3 unequal integers")
b=int(input())
a=int(input())
c=int(input())
if a>b:
if a>c:
print(a,"is the largest")
else:
print(c,"is the largest")
else:
if b>c:
print(b,"is the largest")
else:
print(b,"is the largest")
Output:
Enter any 3 unequal integers
8
6
7
8 is the largest
Comments
Post a Comment