The department office is calculating workshop stipends. Given a student's principal amount, an interest rate, and a duration, Fahim must compute the simple interest so the office can print stipend cheques. Given principal P, rate R (percent per year) and time T (years), compute simple interest = P*R*T/100, printed rounded down to the nearest integer.
Input
Three integers P R T on one line.
Output
One integer: floor(simple interest).
Constraints
1 ≤ P ≤ 10^6, 1 ≤ R ≤ 100, 1 ≤ T ≤ 50
Sample Input
1000 5 2
Sample Output
100
main.c
Loading editor…
Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.