3. Write a program in python to print the table of a number using "for” loop.
Answers
Answered by
0
Answer:
Python Program to Display the multiplication Table
num = int(input("Show the multiplication table of? "))
# using for loop to iterate multiplication 10 times.
for i in
Answered by
2
Answer:
Here, we have used the for loop along with the range() function to iterate 10 times. The arguments inside the range() function are (1, 11). Meaning, greater than or equal to 1 and less than 11.
We have displayed the multiplication table of variable num (which is 12 in our case). You can change the value of num in the above program to test for other values.
Similar questions