about | help | code help+videos | done | prefs |
Write a method that finds the sum of 'num1', 'num2', and 'num3', but ONLY include those numbers in the sum if they are even numbers. For example, if the numbers were 6,2,3 the sum would be 8 because you included 6 and 2 but did not include 3. As preconditions, you may assume that all three numbers are positive. Look at the test data for more examples. test2022_11_03_APP1SLHL_sumEvens(4, 5, 6) → 10 test2022_11_03_APP1SLHL_sumEvens(7, 1, 9) → 0 test2022_11_03_APP1SLHL_sumEvens(8, 2, 40) → 50 ...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