You need to sign in or sign up before continuing.×
Retired

Multiply two numbers a number of times (retired)

840 of 1,319msmichellegar

Description:

Write a function to multiply a number (x) by a given number (y) a certain number of times (n). The results are to be returned in an array.

eg.

multiplyBy(2, 4, 6);
multiplyBy(2, 4, 6);
multiply_by(2, 4, 6)

The output is: [8, 32, 128, 512, 2048, 8192]

NB: all arguments (x,y and n) will always be integers. Times (n) will always be a positive integer.

Fundamentals
Arithmetic
Mathematics
Algorithms
Logic
Numbers

More By Author:

Check out these other kata created by msmichellegar

Stats:

CreatedApr 8, 2015
Warriors Trained2390
Total Skips295
Total Code Submissions5429
Total Times Completed1319
JavaScript Completions840
Ruby Completions389
Haskell Completions107
Total Stars21
% of votes with a positive feedback rating100% of 5
Total "Very Satisfied" Votes241
Total "Somewhat Satisfied" Votes1
Total "Not Satisfied" Votes38
Ad
Contributors
  • msmichellegar Avatar
  • jhoffner Avatar
  • ZozoFouchtra Avatar
  • bkaes Avatar
Ad