about | help | code help+videos | done | prefs |
Write a method that accepts an integer parameter as input. Under most conditions simply return that value increased by one. However, if the input parameter is 3, return a 5. If the input parameter is 4, return a 0. countMPHG(2) → 3 countMPHG(1) → 2 countMPHG(3) → 5 ...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