8. Simple Interest
Foundation1000 ms256 MBSolved by 0%
Read three integers on one line, principal P, annual rate R as a
percentage, and time T in years, and print the simple interest, rounded down to a
whole number.
Interest = P × R × T / 100
Constraints - `1 ≤ P ≤ 100000000` - `0 ≤ R ≤ 100` - `0 ≤ T ≤ 100`
Input
A single line containing three integers P, R and T, separated by spaces.
Output
Print one integer, the interest, with any fractional part discarded.
Input1000 5 2
Output100
Noteis a clean calculation with no remainder
Input1500 7 3
Output315
Noteis a larger clean calculation
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.
Hint 1Where to start
Hint 2The approachOpen hint 1 first. This one carries on from it.
Hint 3PseudocodeOpen hint 2 first. This one carries on from it.
Hint 4Full solutionOpen hint 3 first. This one carries on from it.