The Geometric Check

EasyAcc. 95.1%
+15 XP 5

Multiplicative Grids

In a Geometric Progression, each term is found by multiplying the previous one by a constant ratio. Example: 2, 4, 8, 16 (ratio is 2).

The Assignment

Your function receives parameters start, count, and ratio.

  1. Use a loop to print exactly count numbers.
  2. The sequence should start at start and be multiplied by ratio each time.

01EXAMPLE 1

Inputstart=1, count=4, ratio=2
Output1 2 4 8

Explanation: Starts at 1, doubles each time.

Constraints

  • Print each number on a new line.
  • Use a standard loop.
MathLoops
JavaScript
Loading...
3 Hidden

Input Arguments

start1
count4
ratio2

Expected Output

1
2
4
8

Click RUN to test your solution