How to write a code on js to get multiples of a number, n number of times? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to write a code on js to get multiples of a number, n number of times?

3rd May 2020, 1:02 AM
Jorge QE
Jorge QE - avatar
2 Answers
+ 2
Please start writing a code :)) Here are the instructions you may follow : 1) Take the input 'n' 2) Run a for loop 'n' times 3) In each loop multiply your desired number by the next multiple of the number
3rd May 2020, 2:16 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 1
Thanks : )
3rd May 2020, 3:01 AM
Jorge QE
Jorge QE - avatar