5 XP challenge

Distance from Zero

very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve

Task
Your mission

Return the distance of value from zero. value is an integer from -100 to 100.

Examples

InputReturn
value = -8

answer: -8 → 8. The result is 8.

8
value = 88

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.