about | help | code help+videos | done | prefs |
Write a method that uses an "if statement" to decide which is the older of two ages. Return the older of the two ages. If the ages are the same just return that age. You may NOT use a tertiary conditional or and "Math." operations. whoIsOlder8252015(45, 34) → 45 whoIsOlder8252015(10, 14) → 14 whoIsOlder8252015(7, 7) → 7 ...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: 200
Copyright Nick Parlante 2017 - privacy