Python program for Multiplication Table

'''multiplication table in Python'''
num=input("Enter the number for multiplication table: ");
#get input from user
#use for loop to iterates 1 times
for i in range(1,11):
    print(num,'x',i,'=',num*i)  #for display multiplication table

OUTPUT:

Enter the number for multiplication table:
12
12x1=12
12x2=24
12x3=36
12x4=48
12x5=60
12x6=72
12x7=84
12x8=96
12x9=108
12x10=112

Sharing Is Caring

Leave a Comment