20. Simple Interest Calculator

Acceptance — 0 accepted 0 submissions

Easy
BasicsMath
No companies listed
Meena aunty kept some money in a post office deposit. She wants to know how much interest she will earn.

Given principal P (rupees), rate R (percent per year) and time T (years), find the simple interest using SI = P × R × T / 100.

Input Format
A single line with three integers P, R and T.

Output Format
Print the simple interest rounded to exactly 2 decimal places.

Constraints
• 1 ≤ P ≤ 1000000
• 1 ≤ R ≤ 50
• 1 ≤ T ≤ 30

Example 1

Input
10000 5 2
Output
1000.00

Explanation 10000 × 5 × 2 / 100 = 1000.00

Example 2

Input
1500 7 3
Output
315.00

Explanation 1500 × 7 × 3 / 100 = 315.00

Example 3

Input
999 3 1
Output
29.97

Explanation 999 × 3 × 1 / 100 = 29.97, so the paise matter here.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
1000.00
No results yet
Run your code to test it against the sample cases.
Problem List