about | help | code help+videos | done | prefs |
Define a function that when passed an integer, returns its negated value without using conditions, loops, ..., or the "-" symbol (just for fun). negated(-5) → 5 negated(2147483647) → -2147483647 negated(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: 3 Post-solution available
Copyright Nick Parlante 2017 - privacy