# C Program to Calculate Simple Interest

In this article, we are going to learn how to calculate Simple Interest using a C language program. Simple Interest can be calculated by using a simple formula.

#### The formula for simple interest is:

```Simple Interest = (Principal * Time * Rate of Interest)/100
```
• Principal – This is the amount borrowed on interest.
• Time – This is time for which this money is borrowed.
• Rate of Interest – This is the rate in % at which interest will be charged.

### C Program to Calculate Simple Interest

Now let us see this formula in action using C program below.

```#include<stdio.h>
int main()
{

float PrincipalAmt, time, rate, SimpleInterest;

printf("Please enter the Principal Amount: ");
scanf("%f",&PrincipalAmt);
printf("Please enter the Rate of Interest: ");
scanf("%f",&rate);
scanf("%f",&time);

SimpleInterest = ( PrincipalAmt * time * rate ) / 100;

printf("The Simple Interest due is : %.2f\n",SimpleInterest);

return 0;
}
```

Output

```Please enter the Principal Amount: 1200
Please enter the Rate of Interest: 5