about | help | code help+videos | done | prefs |
Write a method that has two integer input parameters and a boolean input parameter called justEven. Return the sum of the two integers unless justEven is true. In that case, only include the even numbers in the sum. addNumsProg3Dec2011(5, 6, false) → 11 addNumsProg3Dec2011(5, 6, true) → 6 addNumsProg3Dec2011(8, 2, true) → 10 ...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: 240
Copyright Nick Parlante 2017 - privacy