# Function to print multiplication table
def print_table(n, upto=10):
for i in range(1, upto + 1):
print(f”{n} × {i} = {n * i}”)
# Input from user
num = int(input(“Enter a number: “))
# Print the multiplication table
print_table(num)
# Function to print multiplication table
def print_table(n, upto=10):
for i in range(1, upto + 1):
print(f”{n} × {i} = {n * i}”)
# Input from user
num = int(input(“Enter a number: “))
# Print the multiplication table
print_table(num)
Leave a Reply