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

PROGRAMMING:Book Festival

Luz5年前 (2021-05-10)题库449
Every year, dangdang.com has launched a book purchase discount: 50 yuan for every 100 yuan. Please write a program to input the amount of your book purchase, calculate and output the amount of deduction and payment.
####Input format
>Book purchase amount
####Output format
>Deductible amount
>Payment amount
####Sample input 1
```in
two hundred and twenty-eight point seven six
```
####Sample output 1
```out
one hundred
one hundred and twenty-eight point seven six
```
####Sample input 2
```in
one thousand
```
####Sample output 2
```out
five hundred
five hundred
```
Note: all amounts are 2 decimal places.







answer:If there is no answer, please comment