Computer Science, asked by ayanverma69, 6 months ago

write the program code in python to print the table of any number using 'for' loop​

Answers

Answered by anindyaadhikari13
6

Question:-

Write a program in python to print the table of any number using for loop.

Program:-

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

for i in range(1,11):

print(n, " x ",i," = ",n*i)

This for loop runs 10 times and the table of the number is printed.

Answered by BrainlyProgrammer
9

Question:-

  • write the program code in python to print the table of any number using 'for' loop

Code:-

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

for i in range(1,10+1, 1):

print(n,"×",i,"=",(n*i) )

•Sample output attached

Attachments:
Similar questions