cshw/py/BasicIfStatements/challenge3.py

12 lines
No EOL
274 B
Python

# Start of the program
num = int(input("Enter a number: "))
# Check if the number is greater than 100
if num > 100:
print("Thank you")
else:
num += 100
print("I have changed your number as it was too low")
# Output the final number
print("Your number is", num)