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
num = int(input('Which table you need write it here:'))
starting_range = int(input('write the number from where to start:'))
ending_range = int(input('write the end of the number you need:'))
print()
print('So This is the table of', num)
for i in range(starting_range, ending_range + 1):
print(num, 'x', i, '=', num*i)
xxxxxxxxxx
Input1 = int(input("First number:- "))
Input2 = int(input("Second input:- "))
print(Input1 * Input2)
xxxxxxxxxx
# 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)
xxxxxxxxxx
multiplication_table = []
for x in range(0, 100):
multiplication_table.append([i*x for i in range(0, 100)])
multiply = multiplication_table
multiply[6][6]
# 36
xxxxxxxxxx
# Program: Multiplication Table in Python
# number
num = 5
# let's take a syntax for our table - num x (1 - 10) = num*(1-10)
# Since we're taking the table to 10, hence we'll iterate it 10 times
print("The multiplication table of ", num)
for i in range(1, 11):
print(f" {num} x {i} = {num*i}")
xxxxxxxxxx
# 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)
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()
xxxxxxxxxx
for num in range(1,101):
num=int(input('Enter the number for multiplication Table\n'))
print(f'The multiplication table of \n{num}')
print('==============')
for i in range(1,11):
print(num,'x',i,'=',num*i)
print('\n')