Computer Science, asked by ShaniKat8925, 1 month ago

WAP to input 3 numbers, print the smallest number

Answers

Answered by madhaviumale
3

Answer:

a = int(input('Enter first number : ')) b = int(input('Enter second number : ')) c = int(input('Enter third number : ')) smallest = 0 if a < b and a < c : smallest = a elif b < c : smallest = b else : smallest = c print(smallest, "is the smallest of three numbers.")

Similar questions