about | help | code help+videos | done | prefs |
biggerSum
Write a method that accepts two integers as input parameters. The method returns two times the greater number added to the other number. If the two numbers are exactly the same, return three times one of the numbers. biggerSum(17, 2) → 36 biggerSum(100, 50) → 250 biggerSum(3, 4) → 11 ...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: 250
Copyright Nick Parlante 2017 - privacy