num = int(input("Enter any number: "))

print("Table of ",num)

i = 1

while i<11:

print(num*i)

i = i + 1

1 Like

Very nice, well done , now try to print a range of tables, for e.g tables from 1 to 10.

1 Like

for i in range(1,11):

for j in range(1,11):

mul=i*j

if mul <= 9:

print(mul,end=" â€ś)

else:

print(mul,end=â€ť ")

print()

1 Like

thank youâ€¦ all these are already taught in the live lectureâ€¦

2 Likes

number = int(input(â€śEnter a multiplication table:â€ť)

i=1

print (" The multiplication table:,number)

while1<11:

print(num*i)

i=i+1

2 Likes