Skip to main content

Calculate simple interest

Given Principal, time and rate and calculate simple interest. Formula Interest = Principal×Rate×Time.

Example 1
---------
Principal :  1500.0
Time :  3.0
Rate :  7.3
Interest = Principal×Rate×Time
Simple Interest :  328.5

Example 2
---------
Principal :  170.4
Time :  7.0
Rate :  3.4
Interest = Principal×Rate×Time
Simple Interest :  40.5552

Program List

Before you see the actual code, you write a function that takes three parameters (time, principle, and rate) and returns or displays the result.





Comment

Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.

New Comment