n=int(input("Enter n :"))foriinrange(1,11): print(n,"x",i,"=",i*n)

#Output Enter n :4 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 4 x 10 = 40

Categories

Python tutorial to print table of any number

- Post author By Aman Kharwal
- Post date April 21, 2020
- No Comments on Table of any number in Python

n=int(input("Enter n :"))foriinrange(1,11): print(n,"x",i,"=",i*n)

#Output Enter n :4 4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 4 x 10 = 40