For this we will ask the user to enter the input first so we ask the user to enter the number wil print the multiplication table of that number so we want integer numbe for that we will took int function here ,Next we took the for loop we take the variable name as i and take the range as 1 to 21 and print .
Example :-
n = int(input("enter the number"))
for i in range(1,21):
print(n,"*",i,"=",n*i)
0 Comments