Write a python program to print multiplication table of a given number

 # Taking input from the user

num = int(input("Enter a number to print its multiplication table: "))


# Printing the multiplication table from 1 to 10

print(f"\nMultiplication table of {num}:")

for i in range(1, 11):

    print(f"{num} x {i} = {num * i}")

Output:


Comments