How to Display the multiplication Table using Python?
Answers
Answered by
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
Social Sciences,
7 months ago
Computer Science,
7 months ago
Math,
1 year ago
Geography,
1 year ago
Chemistry,
1 year ago