Please enter your email address or userHandle.
Given three integers P,R and T, denoting Principal, Rate of Interest and Time period respectively.Compute the simple Interest.
The simple interest on 100 at a rate
of 20% across 2 time periods is 40.
The simple interest on 999 at a rate
of 9% across 9 time periods is 809.19
You don't need to read input or print anything.Your Task is to complete the function simpleInterest() which takes three integers P,R and T and returns the simple interest.
Expected Time Complexity:O(1)
Expected Auxillary Space:O(1)
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.