Multiplication Table in Python
Here you will get the program code to print multiplication table in python programming.
How to print multiplication table in python
A multiplication table is also known as times table. It is a mathematical chart used to display the products of multiplication for a specific number. It helps to find quickly the result of multiplying two numbers within a certain range.
Program to Print Multiplication Table in Python
1 2 3 4 5 6 | # print multiplication table num=int(input("Enter a number : ")) # iterate 10 times from i = 1 to 10 for i in range(1,11): print(num,'x',i,'=',num*i) |
Output
Enter a number : 4
4 x 1 = 4
4 x 2 = 8
4 x 3 = 12
4 x 4 = 16
4 x 5 = 20
4 x 6 = 24
4 x 7 = 28
4 x 8 = 32
4 x 9 = 36
4 x 10 = 40
Check out our other Python Programming Examples