Problem

Start at start; while value < limit, add step; return final value.

Examples

  • whileLessThan(1, 2, 10) -> 11
  • whileLessThan(0, 3, 2) -> 0
Compile and test (Ctrl+Enter)