- Write a python program to print Multiplication tables from 2 to 20 whether table values entered by user using Simple Function , Parameterized Function , Return Type with function and return type with parameterized Functions .
Write a python program to print Multiplication tables from 2 to 20 whether table values entered by user using Simple …
Share
FOLLOW THE BELOW LINK FOR THE ANSWER:
LINK->
def print_table(num):
“”” This function prints multiplication table of a given number”””
for i in range(1,11):
print(num,’ x ‘, i, ‘ = ‘,num*i)
n = int(input(“Please Enter a number to print its multiplication table:”))
print_table(n)
output: