about | help | code help+videos | done | prefs |
apcsaLoopsConcatInclusiveEitherWay
Given two numbers a and b, build a String that contains every number from a to b, inclusive. Now however, you must decide which way to change your loop control variable. Precondition: a != b for all inputs. That means a could be greater, or less than b. apcsaLoopsConcatInclusiveEitherWay(5, 3) → "543" apcsaLoopsConcatInclusiveEitherWay(10, 8) → "1098" apcsaLoopsConcatInclusiveEitherWay(3, -2) → "3210-1-2" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150
Copyright Nick Parlante 2017 - privacy