Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

3.

25 LAB: Smallest number


Instructor note:
Note: this section of your textbook contains activities that you will complete for
points. To ensure your work is scored, please access this page from the
assignment link provided in Blackboard. If you did not access this page via
Blackboard, please do so now.
Write a program whose inputs are three integers, and whose output is the
smallest of the three values.
Ex: If the input is:
7
15
3
the output is:
3

num1 = int(input())

num2 = int(input())

num3 = int(input())

if(num1<=num2 and num1<=num3):

print(num1)

elif(num2<=num1 and num2<=num3):

print(num2)

else:

print(num3)

You might also like