about | help | code help+videos | done | prefs |
This function multiplies the first two parameters and returns the result, or adds the first two parameters and returns the result, depending on the value of the third parameter. If the third parameter has a value greater than 0, the function returns a multiplication of the first two parameters. Otherwise, the function should return the sum of the first two parameters. apcsaPrimitivesMultiplyOrAddOperands2(2, 4, 3) → 8 apcsaPrimitivesMultiplyOrAddOperands2(2, 4, 0) → 6 apcsaPrimitivesMultiplyOrAddOperands2(-3, 4, 5) → -12 ...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 Post-solution available
Copyright Nick Parlante 2017 - privacy