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.
- Use a loop to print exactly
countnumbers. - The sequence should start at
startand be multiplied byratioeach time.
01EXAMPLE 1
Input
start=1, count=4, ratio=2Output
1
2
4
8Explanation: Starts at 1, doubles each time.
Constraints
- Print each number on a new line.
- Use a standard loop.
MathLoops
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
start1
count4
ratio2
Expected Output
1 2 4 8
Click RUN to test your solution