about | help | code help+videos | done | prefs |
Write a method that returns the sum of three numbers, but only include the third number if 'includeNum3' is 'true'. Look at the test data. Please only use ONE return statement. findSumUCF(5, 2, 10, true) → 17 findSumUCF(5, 2, 10, false) → 7 findSumUCF(3, 1, 100, true) → 104 ...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: 100
Copyright Nick Parlante 2017 - privacy