53. Python Program to Display the Multiplication table for a given number.
How does this program work?
- In this program we are going to learn about how to display multiplication table for given number using Python.
Here is the code
a = int(input("Enter a number: "))
n = int(input("Enter the limit of multiplication"))
i=1
b=0
while i <= n:
b = i * a
print(a,"*",i,"=",b)
i+=1