#challenge
💻 Array of Multiples | #easy
Create a function that takes two numbers as arguments (
Examples:
🏆 Leave your solutions in the comments. The solution will be posted below in a couple of hours 👇
#interview
💻 Array of Multiples | #easy
Create a function that takes two numbers as arguments (
num
, length
) and returns an array of multiples of num
until the array length reaches length
.Examples:
ArrayOfMultiples(7, 5) ➞ [7, 14, 21, 28, 35]For your convenience: dotnetfiddle.
ArrayOfMultiples(12, 10) ➞ [12, 24, 36, 48, 60, 72, 84, 96, 108, 120]
ArrayOfMultiples(17, 6) ➞ [17, 34, 51, 68, 85, 102]
🏆 Leave your solutions in the comments. The solution will be posted below in a couple of hours 👇
#interview