+3 votes
in Class 12 by kratos

Write a program to display multiplication table for a given number?

1 Answer

+3 votes
by kratos
 
Best answer

Multiplication table

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 × 1 = 6

6 × 2 = 12

6 × 3 = 18

6 × 4 = 24

6 × 5 = 30

6 × 6 = 36

6 × 7 = 42

6 × 8 = 48

6 × 9 = 54

6 × 10 = 60

...