Write a program to find the simple interest for given principal amount P, time Tm(in years) and rate R.
Input:
The first line of input contains an integer, the number of test cases T. Each test case should contain three values P, Tm, R separated by space.
Output:
For each testcase in new line, print the floor value of the simple interest
Constraints:
1 <= T <= 100
1 <= P <= 103
1 <= Tm <= 20
1 <= R <= 20
Example:
Input:
2
42
8
15
501
10
5
Output:
50
250
Explanation:
Testcase 1: Simple interest of given principal amount 42, in 8 years at a 15% rate of interest is 50.
11620078 | 164 |
RohitBattu | 127 |
Maninder07 | 126 |
blackshadows | 120 |
Rags Bhasin | 110 |
blackshadows | 880 |
xmyqsh | 565 |
mb1973 | 439 |
aman19 | 402 |
shubhamjain237 | 376 |
akhayrutdinov | 5014 |
Ibrahim Nash | 4899 |
Quandray | 4338 |
sanjay05 | 3668 |
blackshadows | 3384 |