This article provides a Python program to print a table of an entered number n computer science class 11. Let us begin!

program to print a table of an entered number n computer science class 11

The program to print a table of an entered number n computer science class 11 is written using the print() function only. along with print() function.

Let’s how to do this program. Here we go!

Steps – program to print a table of an entered number n computer science class 11

Step 1 – Take input to display a table

Step 2 – Use the print() function and write the statement.

Step 3 – use no. of print() functions to show the table.

Code – program to print a table of an entered number n computer science class 11

n=int(input("Enter number to display table:"))
print(n," X  1  =",n*1)
print(n," X  2  =",n*2)
print(n," X  3  =",n*3)
print(n," X  4  =",n*4)
print(n," X  5  =",n*5)
print(n," X  6  =",n*6)
print(n," X  7  =",n*7)
print(n," X  8  =",n*8)
print(n," X  9  =",n*9)
print(n," X  10 =",n*10)

Output – program to print a table of an entered number n computer science class 11

program to print a table of an entered number n computer science class 11

I hope this program will help to understand the use of the print() function and be useful for your computer science class 11 practical.

Hit the like button if you like this and feel free to share it with your classmates. Feel free to drop your queries in the comment section.

Thank you for visiting my website.

Follow this link for more programs:

Python programs for class 11

Leave a Reply