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

PROGRAMMING:Judge positive and negative numbers

Luz5年前 (2021-05-10)题库417
Input an integer x, if x > 0, then y = 1, otherwise y = - 1, finally output the value of Y.
###Input format:
Input 1 integer directly without any additional characters.
###Output format:
Output in the order of "y = result" in one line, output the result as is, without other additional formats..
###Input example:
```in
five
```
###Output example:
```out
y=1
```
###Input example:
```
-5
```
###Output example:
```
y=-1
```






answer:If there is no answer, please comment