about | help | code help+videos | done | prefs |
Write a method that returns the sum of three integer parameters, however, only include the last number in the sum if that number is at least double the sum of the first two numbers. Look at the test data for examples. oct18_2016_APSLHL_conditionalSum(400, 0, 500) → 400 oct18_2016_APSLHL_conditionalSum(9, -4, 10) → 15 oct18_2016_APSLHL_conditionalSum(-3, 2, 7) → 6 ...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: 245
Copyright Nick Parlante 2017 - privacy