Python Program to Print Table – Basic Python Program

Python program to print multiplication table of a number given by user.

Python Program to Print Table – Basic Python Program

num=int(input("Enter a number to print it's multiplication table:"))

temp=1
i=1
while i<=10:
    temp=num*i
    print(f"{num} * {i} = {temp}")
    i+=1

 

 

Tags: Print table, python program to print tables

Leave a Comment

%d bloggers like this: