#C3732. Loan Repayment Calculator

    ID: 47192 Type: Default 1000ms 256MiB

Loan Repayment Calculator

Loan Repayment Calculator

You are given an initial loan amount \(A\), an annual interest rate in percentage \(R\), and a number of years \(Y\). Your task is to calculate the total amount to be repaid after \(Y\) years using the formula:

\(\text{Total Amount} = A \times \left(1 + \frac{R}{100}\right)^Y\)

The result should be rounded to two decimal places.

inputFormat

The input consists of three integers \(A\), \(R\), and \(Y\) separated by spaces. \(A\) is the initial loan amount, \(R\) is the annual interest rate (in percentage), and \(Y\) is the number of years.

Example: 1000 10 2

outputFormat

Output a single floating-point number representing the total amount to be repaid after \(Y\) years, rounded to two decimal places.

Example: 1210.00

## sample
1000 10 2
1210.00