Ask the user to enter a number between 1 and 12 and then display the times table for that number.

0 votes
asked by about Thonny

1 Answer

0 votes
No avatar answered by (93.9k points)

Here is the program in Python using Thonny:

num = int(input("Enter a number between 1 and 12: ")) for i in range(1, 11): result = num * i print(num, "x", i, "=", result)

This program asks the user to enter a number between 1 and 12 and then displays the times table for that number up to 10.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...