Write a program to find the simple interest for given principal amount P, time Tm(in years) and rate R.
The first line of input contains an integer, the number of test cases T. Each test case should contains three lines input . First line contains P then Tm and R in the last line.
For each testcase in new line, print the floor value of the simple interest
1 <= T <= 100
1 <= P <= 103
1 <= Tm <= 20
1 <= R <= 20
Testcase 1: Simple interest of given principal amount 42, in 8 years at a 15% rate of interest is 50.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.