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.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

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

Result

python language techstudy.org

     





Related Topics




Popular Posts