Skip to content
C

Simple Interest and Total Amount Calculator

Easypython

Calculate simple interest and the total amount payable, given a principal, an annual interest rate, and a time period.

Formula: SI = (P * R * T) / 100. The total amount is P + SI.

Approach: read P, R, and T (all can have decimals), compute SI and the total, and print both rounded to exactly 2 decimal places.

Input: Three lines: principal P, annual rate of interest R (a percentage), and time T in years.

Output: Two lines: Simple Interest: <SI> Total Amount: <total> both rounded to 2 decimal places.

Input (stdin)

Output

Run your code to see output here...