Practice
Simple Interest
EASYArithmetic4 marks
Read a principal amount, annual interest rate, and number of years. Calculate and output the simple interest.
Use the formula:
interest = principal * rate * years / 100
Input: Principal, annual percentage rate, then years. Output: The simple interest.
Example:
Input: 1000
5
3
Output: 150
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: Typical values
Inputs: 1000, 5, 3
Expected: 150
Test 2: Whole-number result
Inputs: 500, 4, 2
Expected: 40