Computer Science, asked by srivastavaanshpb0m20, 1 month ago

write a program in python b print a table on a table of a given number​

Answers

Answered by anindyaadhikari13
0

Answer:

The cσde for this question is written in Python.

n=int(input("Enter a number: "))

print(f"Table of {n} is given as:")

for i in range(1,11):

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

Algorithm:

  1. Accept the number, say n.
  2. Iterate a loop in the range i = 1 to 10.
  3. Display the value of n * i.

Refer to the attachment for output.

•••♪

Attachments:
Similar questions