# C Program to Calculate Simple Interest

0
71 ## In this tutorial, you’ll learn How to Calculate Simple Interest in C Programming.

Simple interest is a quick method to calculate the interest charge on a loan. To Calculate Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments.

Simple Interest formula

The formula for simple interest is given by – simple interest = principle x rate x time / 100

Where,
P is the principal amount
T is the time and
R is the rate

#### The logic to calculate a simple interest

Step by step descriptive logic to calculate simple interest –

1. Input principle amount in some variable says principle.
2. Input time in some variable says time.
3. Input rate in some variable says rate.
4. Now, apply the formula to calculate simple interest i.e. SI = (principle * time * rate) / 100.
5. Finally, print the resultant value of SI.

#### Program to calculate the simple interest

[sourcecode language=”plain”]
#include &amp;amp;lt;stdio.h&amp;amp;gt;

int main()
{
float principle, time, rate, SI;

/* Input principle, rate and time */
printf(&amp;amp;quot;Enter principle (amount): &amp;amp;quot;);
scanf(&amp;amp;quot;%f&amp;amp;quot;, &amp;amp;amp;principle);

printf(&amp;amp;quot;Enter time: &amp;amp;quot;);
scanf(&amp;amp;quot;%f&amp;amp;quot;, &amp;amp;amp;time);

printf(&amp;amp;quot;Enter rate: &amp;amp;quot;);
scanf(&amp;amp;quot;%f&amp;amp;quot;, &amp;amp;amp;rate);

/* Calculate simple interest */
SI = (principle * time * rate) / 100;

/* Print the resultant value of SI */
printf(&amp;amp;quot;Simple Interest = %f&amp;amp;quot;, SI);

return 0;
}[/sourcecode]

Output:

#### Related C Programs

Ask your questions and clarify your/others doubts on C Program to Calculate the Simple Interest by commenting. Documentation