Python Program for display the multiplication table of any number from the user

Python Program for display the multiplication table of any number.






Lets start


  1. Now I am going to show you how to create multiplication table using Python concept. 
  2. Very easy steps just follow.

Python Source Code

number = int(input("Multiplication table of?"))
for i in range(1,17):
     print(number, "X", i, "=", number*i)

Output

Multiplication table of? 5
5 X 1 = 5
5 X 2 =10
5 X 3 = 15
5 X 4 = 20
5 X 5 = 25
5 X 6 = 30
5 X 7 = 35
5 X 8 = 40
5 X 9 = 45
5 X 10 =50
5 X 11 = 55
5 X 12 = 60
5 X 13 = 65
5 X 14 = 70
5 X 15 = 75
5 X 16 = 80

Explanation with source code

............ 
  • Here, we are getting the number from the user using input() function. 
  • Then apply the loop condition (for loop) to display the output of given range. 
  • Finally print the result use of given range using print() function. 
........... 
Apply and learn the python concept

Post a Comment

If you any doubts, Please let me know

Previous Post Next Post