5 XP challenge

Classify a Sign

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

Task
Your mission

Return -1 for a negative value, 0 for zero, and 1 for a positive value. value is an integer from -100 to 100.

Examples

InputReturn
value = -100

answer: 0 → -1. The result is -1.

-1
value = 00

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.