BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Python Program to Print Multiplication Table of a given Number

Last Updated: June 9, 2018 by Chaitanya Singh | Filed Under: Python Examples

In this tutorial, we will see a simple Python program to display the multiplication table of a given number.

Print Multiplication table of a given number

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 published on https://beginnersbook.com

# Python Program to Print Multiplication Table of a Number

num = int(input("Enter the number: "))

print("Multiplication Table of", num)
for i in range(1, 11):
   print(num,"X",i,"=",num * i)

Output:

Enter the number: 6
Multiplication Table of 6
6 X 1 = 6
6 X 2 = 12
6 X 3 = 18
6 X 4 = 24
6 X 5 = 30
6 X 6 = 36
6 X 7 = 42
6 X 8 = 48
6 X 9 = 54
6 X 10 = 60

Python program to display multiplication table of given number

Related Python Example:

1. Python program to find the sum of n natural numbers
2. Python program to add digits of a number
3. Python program for addition, subtraction, multiplication and division
4. Python program to swap two numbers

Top Related Articles:

  1. Python Program to Convert Decimal to Hexadecimal
  2. Python Program to Check if a Number is Positive Negative or Zero
  3. Python Program to Convert Celsius To Fahrenheit and Vice Versa
  4. Python Program to Find ASCII Value of a Character
  5. Python Program to Add Digits of a Number

About the Author

I have 15 years of experience in the IT industry, working with renowned multinational corporations. Additionally, I have dedicated over a decade to teaching, allowing me to refine my skills in delivering information in a simple and easily understandable manner.

– Chaitanya

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap