Multiplication Table Program in Python

Multiplication Table Program in Python


Code:

num = int(input("enter number to find its table: "))

for i in range(1, 11):

    print ( num , "*" , i , "=" , num*i )

Output:

enter number to find its table: 9
9 * 1 = 9
9 * 2 = 18
9 * 3 = 27
9 * 4 = 36
9 * 5 = 45
9 * 6 = 54
9 * 7 = 63
9 * 8 = 72
9 * 9 = 81
9 * 10 = 90
>>> 

Video Tutorial:

Post a Comment

Previous Post Next Post