5 XP challenge
Advance a Counter
very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve
TaskYour mission
Starting at initial, add increment exactly steps times and return the final value. initial is -100 to 100, increment is -10 to 10, and steps is 0 to 20.
Examples
| Input | Return |
|---|---|
initial = 5, increment = 2, steps = 3answer: 5 → 7 → 9 → 11. The result is 11. | 11 |
initial = 5, increment = 2, steps = 0 | 5 |
Your code
Write your answer inside Solution, then use return to send it back.
Ln 1, Col 1
JavaScript
Try examples runs the public examples. Check my code checks your full answer and saves your completion.