about | help | code help+videos | done | prefs |
If the given boolean parameter is true, and the integer parameter is positive, return the square root of the integer (rounded toward zero). If the given boolean parameter is true, and the integer parameter is negative or zero, return the absolute value of the parameter times two. If the boolean parameter is false, return zero (if doesn't matter what the integer parameter is). randomProblem1(true, 144) → 12 randomProblem1(true, -7) → 14 randomProblem1(false, 100) → 0 ...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