#PCBBAY0000056. Tiền thuế theo tỉ lệ (Tax Amount from a Rate)
Tiền thuế theo tỉ lệ (Tax Amount from a Rate)
Tax Amount from a Rate
Version: Phuoc Hung OJ Extended
Problem Statement
Given an amount before tax and a decimal tax rate (for example, means ), compute the tax amount only: . Print exactly 2 decimal places; do not add the tax to the original amount.
Input
The only line contains real values (pre-tax amount) and (decimal tax rate).
Output
Print the tax amount , not the tax-inclusive total, with exactly 2 decimal places.
Subtasks
- Subtask 1 (100 points): ; .
Examples
Example 1
Input
100 0.1
Output
10.00
Explanation. Substituting 100, 0.1 into amount × rate gives approximately 10. The required output formatting produces 10.00.
Example 2
Input
1234.56 0.075
Output
92.59
Explanation. Substituting 1234.56, 0.075 into amount × rate gives approximately 92.592. The required output formatting produces 92.59.
Example 3
Input
0 0.2
Output
0.00
Explanation. Substituting 0, 0.2 into amount × rate gives approximately 0. The required output formatting produces 0.00.