python-by-example-150-chall.../challenges35-44/challenge-039.py

5 lines
159 B
Python
Raw Permalink Normal View History

2019-07-17 14:56:46 +08:00
number = int(input('Enter number between 1 and 12 : '))
for i in range(1, 13):
result = i * number
print('{0} x {1} is {2}'.format(i, number, result))