Can you pleasa give me a puthon code that generates multiplication table of a number that the user chooses? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can you pleasa give me a puthon code that generates multiplication table of a number that the user chooses?

multiplication table

20th Oct 2017, 3:38 PM
Νικος Μανε
Νικος Μανε - avatar
2 Answers
+ 12
#its simple n = int(input("Input a number: ")) # use for loop to iterate 10 times for i in range(1,11): print(n,'x',i,'=',n*i)
20th Oct 2017, 4:09 PM
P R
P R - avatar
+ 2
thank you very much
20th Oct 2017, 4:11 PM
Νικος Μανε
Νικος Μανε - avatar