-->
当前位置:首页 > 题库 > 正文内容

PROGRAMMING:Piecewise function 3

Luz3年前 (2021-05-10)题库284
Input integer x, calculate y and output. The formula is as follows:
![](~/ 214)
###Input format:
Enter an integer directly without any additional characters.
###Output format:
Output according to the format sequence of "y = result", where the result is the original output of 6 decimal places, without any additional format control.
###Input example:
```in
five
```
###Output example:
```out
y=8.000000
```
###Input example:
```
-2
```
###Output example:
```
y=-1.000000
```






answer:If there is no answer, please comment

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。