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.
-
1) Program to calculate simple interest in scala
2) Program to calculate simple interest in c++
3) Program to calculate simple interest in c
4) Program to calculate simple interest in golang
5) Program to calculate simple interest in node js
6) Program to calculate simple interest in python
7) Program to calculate simple interest in ruby
8) Program to calculate simple interest in c#
9) Program to calculate simple interest in java
10) Program to calculate simple interest in vb.net
11) Program to calculate simple interest in swift
12) Program to calculate simple interest in kotlin
13) Program to calculate simple interest in typescript
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