An Interest In:
Web News this Week
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
May 27, 2020 01:02 pm GMT
Original Link: https://dev.to/thepracticaldev/daily-challenge-249-incremental-changes-5bgj
Daily Challenge 249 - Incremental Changes
Implement an algorithm which increases number
and returns the result. Start from number
and increment by step
as many times as iterations
demands.
Input: number
, iterations
, step
.
Example:
alg(2, 5, 10) => 2 + 10 + 10 + 10 + 10 + 10 = 52
alg(17, 3, 6) => 17 + 6 + 6 + 6 = 35
Tests:
alg(100, 5, 50)
alg(14, 20, 4)
Good luck!
Want to propose a challenge idea for a future post? Email [email protected] with your suggestions!
Original Link: https://dev.to/thepracticaldev/daily-challenge-249-incremental-changes-5bgj
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To