Displaying a Multiplication Table

A code to display the Multiplication Table of a specific number.

Welcome to the code! This code is for all the geeks out there who love to play with numbers. However, this is a a simple Python code to display the Multiplication table we all once spent hours learning.

In this code, the user is asked for a number to show its multiplication table and the user can also choose upto which number the multiplication table has to be displayed.

Note: Loved the post? You too can publish your article on “Python for fun” which will be loved by millions. Contribute an article!

							
							
					num = int(input("Enter the Multiplication Table you want to display: "))

length = int(input("Enter upto which number do you want to display the multiplication table: "))

for i in range (length+1):
    print(num, "X", i, "=", num*i)				
			
Share on facebook
Share on whatsapp
Share on pinterest
5 1 vote
Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments