-->
当前位置:首页 > 题库

PROGRAMMING:Simulate the symbolic function function

Luz5年前 (2021-05-10)题库430
Enter an integer. If it is greater than 0, output 1. If it is less than 0, output - 1,
If it is equal to 0, output 0.
###Input format:
Enter an integer.
###Output format:
Output 1 or 0 or - 1.
###Input sample 1:
```in
nine
```
###Output sample 1:
```out
one
```
###Input sample 2:
```in
-9
```
###Output sample 2:
```out
-1
```
###Input sample 3:
```in
0
```
###Output sample 3:
```out
0
```







answer:If there is no answer, please comment