Q:

Write a Python program to create the multiplication table (from 1 to 10) of a number

0

Write a Python program to create the multiplication table (from 1 to 10) of a number

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

I have used python 3.7 compiler for debugging purpose.

num = int(input("Input a number: "))
 
# use for loop to iterate 10 times
for i in range(1,11):
   print(num,'x',i,'=',num*i)

Result:

Input a number: 10

10 x 1 = 10

10 x 2 = 20

10 x 3 = 30

10 x 4 = 40

10 x 5 = 50

10 x 6 = 60

10 x 7 = 70

10 x 8 = 80

10 x 9 = 90

10 x 10 = 100

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Write a Python program to calculate the sum and av... >>
<< Write a Python program to convert month name to a ...