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

PROGRAMMING:Discount in supermarket

Luz5年前 (2021-05-10)题库446
A supermarket promotion regulations: shopping no more than 50 yuan, according to the original price payment; More than 50 yuan, not more than 150 yuan, more than 10% off payment; If it exceeds 150 yuan, the excess part will be paid at 20% discount. Programming to complete the supermarket billing discount.
###Input format:
Enter a real number, that is, the original price of the goods.
###Output format:
Output the price after discount, keep two decimal places.
###Input example:
Here is a set of inputs. For example:
```in
one hundred and five
```
###Output example:
The corresponding output is given here. For example:
```out
ninety-nine point five zero
```
###Input sample 2:
Here is a set of inputs. For example:
```in
two hundred and ten
```
###Output sample 2:
The corresponding output is given here. For example:
```out
one hundred and eighty-eight
```







answer:If there is no answer, please comment