1Input1 = int(input("First number:- "))
2Input2 = int(input("Second input:- "))
3print(Input1 * Input2)
1# Multiplication table (from 1 to 10) in Python
2# To take input from the user
3# num = int(input("Display multiplication table of? "))
4for i in range(1, 11):
5 print(num, 'x', i, '=', num*i)
1a=int(input("enter table number"))
2b=int(input("enter the number to which table is to printed"))
3i=1
4while i<=b:
5 print(a,"x",i,"=",a*i)
6 i=i+1
7
1first_doc = '''it created by iliya zahedi abghari
2
3i am the student in iran , alameh tabatabayi school
4'''
5
6print(first_doc)
7def jadval_zarb(rows, columns):
8 for i in range(1,rows+1):
9 for j in range(1,columns+1):
10 #print(i*j, end=' ')
11 print('{:>4}'.format(i* j), end=' ')
12 print()
13jadval_zarb(10,10)
14def do_continue():
15 choice = str(input('continue(yes/no)?')).lower()
16 if(choice !='yes'):
17 return False
18 return True
19while True:
20 rows = int(input("Enter rows:"))
21 columns = int(input("Enter columns:"))
22 jadval_zarb(rows, columns)
23 if(not do_continue()):
24 break
25
1# Multiplication table (from 1 to 10) in Python
2
3num = 12
4
5# To take input from the user
6# num = int(input("Display multiplication table of? "))
7
8# Iterate 10 times from i = 1 to 10 By AyushG
9for i in range(1, 11):
10 print(num, 'x', i, '=', num*i)
1m = int(input("m: "))
2n = int(input("n: "))
3
4for i in range(1, m+1) :
5 for j in range(1, n+1) :
6 print("%d\t" % (i*j), end="")
7 print()