Python Program to Print Table of a Given Number

Python Program to Print Table of a Given Number

  • This is a Python Program to print the table of a given number.

Problem Solution

  1. Take in a number and store it in a variable.
  2. Print the multiplication tables of a given number.
  3. Exit.

Source Code

n=int(input("Enter the number to print the tables for:"))  
for i in range(1,11):
         print(n,"*",i,"=",n*i)



 

 

Comments