Completed Exercise 7-3 Multiples of Ten
This commit is contained in:
parent
da38d97cf8
commit
0344a331fc
9
Chapter_07/7-03_multiples_of_ten.py
Normal file
9
Chapter_07/7-03_multiples_of_ten.py
Normal file
@ -0,0 +1,9 @@
|
||||
# Exercise 7-3 Multiples of Ten
|
||||
# Learning Objective: Perform math on an input.
|
||||
|
||||
provided_number = input("Please input a number: \n")
|
||||
|
||||
if int(provided_number) % 10 == 0:
|
||||
print("This number IS a multiple of ten.")
|
||||
else:
|
||||
print("This number IS NOT a multiple of ten.")
|
||||
Loading…
x
Reference in New Issue
Block a user