👤

Hello everyone, please I need your help.
Accept n number from user and print its multiplication table
For example user enters the input 2 so the output should be
2
4
6
8
10
12
14
16
18
20​


Répondre :

Bonsoir,

n = int(input("n = "))

for i in range(1, 11): #On fait varier i de 1 à 10 (le 11 est exclut).

   print(n * i)

Bonne soirée.