about | help | code help+videos | done | prefs |
abs
Define a function that when passed an integer, returns its absolute value without using conditions or loops. abs(-5) → 5 abs(-2147483647) → 2147483647 abs(100) → 100 ...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: 4 Post-solution available
Copyright Nick Parlante 2017 - privacy