16. Number Sign

Given an integer number. Write a function string Sign(int number) that returns a string describing the sign of the number: "positive" for positive numbers, "negative" for negative numbers, and "zero" for zero.
Example 1
Input: number = -15
Output: "отрицательное"
Explanation: -15 is less than 0
Example 2
Input: number = 0
Output: "ноль"
Explanation: The number equals 0
Example 3
Input: number = 42
Output: "положительное"
Explanation: 42 is greater than 0
easystrings
JavaScript
Loading...
Line 1, Char 1