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

PROGRAMMING:Time deposit

Luz5年前 (2021-05-10)题库381
The customer goes to the bank to deposit a one-year fixed deposit. Please write a program, input 1-year fixed deposit interest rate and deposit amount, help customers calculate the due principal, interest and total amount.
####Input format
>Deposit amount and interest rate
####Output format
>Principal
>Interest
>Total
Note: the interest rate is a percentage, less than 10%; The deposit amount is less than 1 million yuan. The total of principal, interest and principal and interest is accurate to minutes, and the output format is aligned with the decimal point.
####Input sample
```in
201930.00 4.36
```
####Output sample
```out
Principal: 201930.00 yuan
Interest: 8804.15 yuan
Total: 210734.15 yuan
```







answer:If there is no answer, please comment