ChamplainTechJournals/python-csi160/week04/week04_labs/croce_week04_lab_03.py
2025-04-19 23:42:08 -04:00

16 lines
454 B
Python

# 3. Write a program that asks for two numbers. If the sum of the numbers is greater than
# 100, print "They add up to a big number" if it is less than/equal to 100 than print "They add up to ____".
def add_to_big_number():
num1 = int(input("num1: "))
num2 = int(input("num2: "))
sum = num1 + num2
if sum > 100:
print("They add up to a big number")
else:
print("They add up to " + str(sum))
add_to_big_number()