about | help | code help+videos | done | prefs |
Write a method that returns the sum of a and b, unless 'doubleA' is true. In that case, count a twice! Look at the test data for examples. quiz2021_10_04_APSLHL_total(5, 2, false) → 7 quiz2021_10_04_APSLHL_total(8, 10, false) → 18 quiz2021_10_04_APSLHL_total(8, 10, true) → 26 ...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