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

PROGRAMMING:Hangzhou step price

Luz5年前 (2021-05-10)题库480
Hangzhou implements one household, one meter and ladder electricity price system: if the monthly consumption exceeds 230kw, the electricity price is 0.538 yuan; If the power price exceeds 230kw and is within 400KW, the price of the excess part will increase by 0.05 yuan; The excess part of 400KW will be increased by 0.3 yuan. Write a program, when the input of a user's monthly electricity consumption, the output of the user's monthly electricity price (input as an integer)
###Input format:
In the same line of the prompt message, enter the monthly electricity quantity greater than zero.
###Output format:
Export monthly electricity charges.
###Input example:
```in
three hundred
```
###Output example:
```out
one hundred and sixty-four point nine zero
```







answer:If there is no answer, please comment