Python Program to Print Multiplication Table of a Number ( User Input )

preview_player
Показать описание
in this Python Video you will learn to write an Example Program to display / print the Multiplication Table for a Number entered by the user.

Displaying the multiplication table is one of the simple program a beginner can write.
We first ask the user to enter a number and we store that in a variable.
Then we use a for loop and loop from 1 up to certain number as the programmer wants.
We multiply the number entered by the user with the loop counter variable and display the result.

our Social Media Pages

Our Website

#PythonProgramming #ExampleProgram
Рекомендации по теме
Комментарии
Автор

number=int(input('enter number:'))
limit=int(input('enetr limit:'))

for mul in range(1, limit+1):
result=number * mul
print('{} * {} = {}'.format(number, mul, result))

monalipatil
Автор

how do i make more than one number in one input multiply

osamahaljawaheri
Автор

Num = int(input("Enter the Number :"))
For i in range(1, 21) :
print(Num, "X", i, "=", Num*i)

prashantrrai
Автор

num = int(input("enter the number : "))
element = int(input("for how many values ou need "))
for mul in range(1, element+1):
print(f"{num} * {mul} = {num*mul}")

tirivikiramanb
Автор

index no for all the elements in the list how?

dpuwns
Автор

If we want to user input the start, end number of table then share the python code

aimansafdar
Автор

well explained, also please make series on data science.

_shubhambirhade
Автор

Hi,

After the user has chosen a table. The user also needs to be able to give which table he needs and the programme should print the outcome of that. How do i do that? for example the user needs the table of 1, 5 and 6. I need these tables to be display next to eachother

jijijjf
Автор

I want the program to stop only when the user enter a "0", how can I do that? Please kindly assist.

mightyhlungwane
Автор

number=int(input("enter the number : "))

for mul in range(1, 11):
print("{0}*{1}={2}".format(number, mul, (number*mul)))

Dreamlikenazway
Автор

How do I write a program if I want the answer in a list. For example I need the multiplies of 4 between 25 to 50 . The final output should be (28, 32, 36, 40, 44, 48)

renuayyappan
Автор

how to modify this program to ask from the user to print another table?

divasbains
Автор

Hi bro,
I need a program like...
If I enter number 4
I should get output like...
1*1=1
4*10=40

prasadn
Автор

n = int(input("enter the number =")
for m in range (1, 101)
Print (n, " *", n, " =", n*m

classmathematicsbyn.r
Автор

number=int(input("enter the number: "))
range1=int(input("enter the range you want to display the table: "))

for num in range (1, range1):
print("{0} X {1} = {2}".format(number, num, (number*num)))

rohitbibe
Автор

How to write a program to print tables from 2 to 5 or 10.

anitasharma
Автор

hi i need to print the multiplication for a given number and at a time need to print multipliction for which numbers that are before the given number not 1 table
Ex: MulTable(4) should print;

Output:

2 x 1 = 2 3 x 1 = 3 4 x 1 = 4

2 x 2 = 4 3 x 2 = 6 4x 2 = 8

2 x 3 = 6 3 x 3 = 9 4 x 3 = 12

2 x 4 = 8 3 x 4 = 12 4 x 4 = 16

2 x 5 = 10 3 x 5 = 15 4 x 5 = 20

2 x 6 = 12 3 x 6 = 18 4 x 6 = 24

2 x 7 = 14 3 x 7 = 21 4 x 7 = 28

2 x 8 = 16 3 x 8 = 24 4 x 8 = 32

2 x 9 = 18 3 x 9 = 27 4 x 9 = 36

2 x 10 = 20 3 x 10 = 30 4 x 10 = 40

Munna_
Автор

number = int(input("Enter any number: "))
while(number>0):
for i in range(1, int(input("enter the limit+1"))):
print()
print("{} x {} = {}".format(number, i, (number*i)))

turyachaitanya