Implement a function, multiples(m, n)
, which returns an array of the first m
multiples of the real number n
. Assume that m
is a positive integer.
Ex.
multiples(3, 5)
should return
vec![5, 10, 15]
Implement a function, multiples(m, n)
, which returns an array of the first m
multiples of the real number n
. Assume that m
is a positive integer.
Ex.
multiples(3, 5)
should return
vec![5, 10, 15]