Python Programming – Find Minimum of Three Numbers


# Determining the Minimum of Three Values
# prompt for and inputs three values
# Mukesh Tekwani

number1 = int(input('Enter first integer: '))
number2 = int(input('Enter second integer: '))
number3 = int(input('Enter third integer: '))

minimum = number1

if number2 < minimum:
minimum = number2

if number3 < minimum:
minimum = number3

print('Minimum value is', minimum)
%d bloggers like this: