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

PROGRAMMING:JMU Python piecewise function

Luz5年前 (2021-05-10)题库391
This topic requires the calculation of the value of the following piecewise function f (x) (x is an arbitrary real number input from the keyboard)
![ Piecewise function. JPG] (~ / 625099ce-3e8d-4a2f-a719-99929e1e027e. JPG)
###Input format:
The input gives the real number x on one line.
###Output format:
Output in the format of "f (x) = result" in one line, where * * x and result retain two decimal places * *.
###Input example:
```in
zero point seven six
```
###Output example:
```out
f(0.76)=1.20
```







answer:If there is no answer, please comment