first hw batch 15.3.25 at 11:09
This commit is contained in:
commit
288c7e127a
10 changed files with 73 additions and 0 deletions
12
py/BasicIfStatements/challenge3.py
Normal file
12
py/BasicIfStatements/challenge3.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
# 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)
|
Loading…
Add table
Add a link
Reference in a new issue