Write a python Program to print multiplication table of any number with Practical Example
Program Description
In the program, user is asked to enter the number and the program prints the multiplication table of the input number using for loop. The loops run from 1 to 10 and the input number is multiplied by the loop counter in each step to display the steps of multiplication table.
Program Logic:
- Take the number from user using int(input()) function
- Store it in variable say num
- Use for loop in combination with range function to iterate 10 times and multiply number with value of i
- Print the multiplication table as output
Below is the implementation code :
# Python Program to Print Multiplication Table of a Number
num = int(input("Enter the number : "))
for i in range(1, 11):
print(num, 'x', i, '=', num*i)
Below is snapshot of executable code with output


You can also check this too
- Program to check whether it is palindrome or not
- Program to create random number generator which generate random number between 1 and 6
- Program to write user defined function to swap two number and display number before swapping and after swapping
<