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

Introduction

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

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

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

Leave a Comment