xxxxxxxxxx
#* is the multiplication symbol in Python, so:
print(2 * 3)
#output: 6
xxxxxxxxxx
Input1 = int(input("First number:- "))
Input2 = int(input("Second input:- "))
print(Input1 * Input2)
xxxxxxxxxx
def multi_table(num):
for i in range(1, 13):
print(f'{i} X {num} = {i*num}')
num = float(input('Enter a number to print its Multiplication table: '))
multi_table(num)
#output
Enter a number to print its Multiplication table: 7
1 X 7.0 = 7.0
2 X 7.0 = 14.0
3 X 7.0 = 21.0
4 X 7.0 = 28.0
5 X 7.0 = 35.0
6 X 7.0 = 42.0
7 X 7.0 = 49.0
8 X 7.0 = 56.0
9 X 7.0 = 63.0
10 X 7.0 = 70.0
11 X 7.0 = 77.0
12 X 7.0 = 84.0
xxxxxxxxxx
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()