Next Index Previous

Python Examples

10. Program to print multiplication table.

n = int(input('Enter a value'))

for a in range(1,11):
	print(n,' x ',a,' = ',n*a)
Input :
9
Output :
9 x 1 = 9
9 x 2 = 18
9 x 3 = 27
9 x 4 = 36
9 x 5 = 45
9 x 6 = 54
9 x 7 = 63
9 x 8 = 72
9 x 9 = 81
9 x 10 = 90




Father of Python Language

Guido-van-Rossum

Guido van Rossum

Born: January 31, 1956, Netherlands