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
Hint 1Approach
Hint 2Approach
Hint 3Pseudocode
Hint 4Full solution