write the program code in python to print the table of any number using 'for' loop
Answers
Answered by
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
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