Answers for "multiplication table in python"

2

multiplication in python

Input1 = int(input("First number:- "))
Input2 = int(input("Second input:- "))
print(Input1 * Input2)
Posted by: Guest on June-24-2021
0

write a python program to find table of a number using while loop

a=int(input("enter table number"))
b=int(input("enter the number to which table is to printed"))
i=1
while i<=b:
    print(a,"x",i,"=",a*i)
    i=i+1
Posted by: Guest on July-30-2020
-1

print multiplication table python

# Multiplication table (from 1 to 10) in Python

num = 12

# To take input from the user
# num = int(input("Display multiplication table of? "))

# Iterate 10 times from i = 1 to 10 By AyushG
for i in range(1, 11):
   print(num, 'x', i, '=', num*i)
Posted by: Guest on June-19-2020
0

Multiplication table with Python

first_doc = '''it created by iliya zahedi abghari

i am the student in iran , alameh tabatabayi school
'''

print(first_doc)
def jadval_zarb(rows, columns):
	for i in range(1,rows+1):
		for j in range(1,columns+1):
			#print(i*j, end=' ')
			print('{:>4}'.format(i* j), end=' ')
		print()
jadval_zarb(10,10)
def do_continue():
	choice = str(input('continue(yes/no)?')).lower()
	if(choice !='yes'):
		return False
	return True
while True:
	rows = int(input("Enter rows:"))
	columns = int(input("Enter columns:"))
	jadval_zarb(rows, columns)
	if(not do_continue()):
		break
Posted by: Guest on September-15-2020
0

multiplication table in python

m = int(input("m: "))
n = int(input("n: "))

for i in range(1, m+1) :
        for j in range(1, n+1) :
            print("%d\t" % (i*j), end="")
        print()
Posted by: Guest on July-19-2021
-1

multiplication table python

# Multiplication table (from 1 to 10) in Python
# To take input from the user
# num = int(input("Display multiplication table of? "))
for i in range(1, 11):
   print(num, 'x', i, '=', num*i)
Posted by: Guest on February-24-2021

Code answers related to "multiplication table in python"

Python Answers by Framework

Browse Popular Code Answers by Language