Print multiplication table of 24, 50 and 29 using loop
Answers
Answered by
5
n = int(input("Enter a number "))
for i in range(1,11):
print(n*i)
Please mark me brainliest
Answered by
5
Answer:
This is the required program for the question in Python. This program prints the multiplication table of 24, 29 and 50.
for i in [24,29,50]:
print(f"Multiplication table of {i}:")
for j in range(1,11):
print(f"{i} * {j} = {i*j}")
print()
This is a very simple program. Two loops are created. First loop iterates through the number list whose multiplication table is to be printed.
Next, the second loop is created to display the multiplication table. After displaying the table, a new line is displayed.
See the attachment for output.
•••♪
Attachments:
Similar questions