Show the sign
if..else, write the code which gets a number via
prompt and then shows in
1, if the value is greater than zero,
-1, if less than zero,
0, if equals zero.
In this task we assume that the input is always a number.Demo in new window