about | help | code help+videos | done | prefs |
Write a method that returns a string of numbers with each number inside a less-than and greater-than pair. For example: "<7>". The numbers start at 'min' and run up-to and possibly including 'max', going up each time by 'step'. For example, if 'min' is 7, 'step' is 3, and 'max' is either 10, 11, or 12, in all of those cases the result would be "<7><10>" because you are supposed to go up to and possibly including 'max', but 'max' only gets included if the last step lands you right on 'max'. Note: 'min' and 'max' can be any integers, but you may assume that 'step' must be positive. oct18_2016_APSLHL_countBy(5, 1, 7) → "<5><6><7>" oct18_2016_APSLHL_countBy(82, 12, 94) → "<82><94>" oct18_2016_APSLHL_countBy(13, 7, 85) → "<13><20><27><34><41><48><55><62><69><76><83>" ...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: 220
Copyright Nick Parlante 2017 - privacy