Answer to Question #330839 in Algorithms for cyclon

Question #330839

Make an algorithm program that prompts the user for a number and then displays its multiplication table using a loop.


1
Expert's answer
2022-04-21T14:40:12-0400
n = int(input('Enter the number: '))
if n == 0:
    print('0 * 0 = 0')
else:
    for i in range(1, n + 1):
        print(f'{i} * {n} =', i * n)





Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS