Q. Write a program in Python, Input 3 numbers and find the largest number. 1
Ans: Input 3 numbers and check if first number is larger than others, if it is print message, otherwise check for second number is larger than others, if it is print message, otherwise no condition for 3rd number, in else print message.
# Input 3 numbers and find the largest number. a=int(input("Enter 1st Number:" )) b=int(input("Enter 2nd Number:" )) c=int(input("Enter 3rd Number:" )) if a>b and a>c: print("A is larger") elif b>c and b>a: print("B is larger") else: print("C is larger")