Write a menu driven program to find the largest among three numbers,smallest among three numbers and mid value among three numbers given as input.
Answers
Answered by
4
lf u want a python program here u go
a=int(input("Enter a number:"))
b=int(input("Enter a number:"))
c=int(input("Enter a number:"))
if a>b or a>c:
print("a is the greatest")
elif b>c or b>a:
print("b is the greatest")
else c>a or c>b:
print("c is the greatest")
Explanation:
If u want u can use 'float' instead of 'int'
Similar questions