python-dev avatar

Python Program to Display the multiplication Table

python-dev

Published: 22 Mar 2020 › Updated: 22 Mar 2020Python Program to Display the multiplication Table

Python Program to Display the multiplication Table

# Multiplication table (from 1 to 10) in Python

num = 12

# To take input from the user
# num = int(input("Display multiplication table of? "))

# Iterate 10 times from i = 1 to 10
for i in range(1, 11):
   print(num, 'x', i, '=', num*i)

Leave Python Program to Display the multiplication Table to:

Written by

Read more #python-dev posts


Best Posts From python-dev

We have not curated any of python-dev's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From python-dev