Question #330839

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


Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS