How to do?

  1. Take input number(to form table) from the user .
  2. Process to make formation of table through lopping

Source code:

n=int(input("Enter the no.to generate mul table:"))

for i in range(1,12):

print(n,"x",i,"=",n*i)


Explanation:

  1. program ask user to input number to generate multiplication table.
  2. Program starts looping to generate table.

Output:

Leave a Reply

Your email address will not be published. Required fields are marked *