Computer Science, asked by goodvibesonly6934, 1 year ago

How to Display the multiplication Table using Python?

Answers

Answered by Smitvan
0

In Python, you can make a program to display the multiplication table of any number. The following program displays the multiplication table (from 1 to 10) according to the user input.

See this example:

num = int(input("Show the multiplication table of? "))

# using for loop to iterate multiplication 10 times

for i in range(1,11):

print(num,'x',i,'=',num*i)

The following example shows the multiplication table of 18.

Output:

Python Condition And Loops8

Similar questions