Program to display multiplication table

In Python, we can make a program to display the multiplication table of any number.

Program
n=int(input("Enter the number for multiplication"))

i=1
s=n
while(i>=10):
print(i,"X",s,"+",s*i)

Or

n=int(input("Enter the number for multiplication"))
for i in rang(1,11):
ptint (n,"X",i,"=",n*i)

Leave a Reply