Computer Science, asked by officialzainabansari, 1 month ago

write a program to input three numbers and display the smallest sample input 65,41,98​

Answers

Answered by alienfighter0000
1

Answer:

When we put 65,41,98 as input, the output comes out is:

41 is the smallest number.

Explanation:

# Write a program to input three numbers and display the smallest.

number1 = int(input("Enter number 1: "))

number2 = int(input("Enter number 2: "))

number3 = int(input("Enter number 3: "))

if number1 < number2 and number1 < number3 :

   print(f"{number1} is the smallest number.")

elif number2 < number1 and number2 < number3 :  

   print(f"{number2} is the smallest number.")  

else :

   print(f"{number3} is the smallest number.")    

# Thank you.

Similar questions