...

/

Solution: Multiplication Table for a Given Number

Solution: Multiplication Table for a Given Number

Learn how to print the multiplication table for a number.

We'll cover the following...

The solution to the problem of printing the multiplication table for a number is given below.

Solution

Press + to interact
num, lower, upper = 5, 1, 4
for i in range(lower, upper + 1) :
print(num, 'x', i , '=' , num * i)
...