Table of contents

## How to Calculate Simple Interest?

Simple interest can be calculated using the formula: Simple Interest SI=(p*t*r)/100.

Here p is the principle amount. For this amount we are calculating the interest. t is the timeperiod and r is the interest rate.

Take input of p,t and r then multiply them and after that divide them by 100 and which results in rate of interest.

## C Program to Find Simple Interest

```
#include<stdio.h>
int main(int argc, char const *argv[])
{
int p,t,r;
printf("\n\n\tEnter principle, time and rate of interest:\n\t");
scanf("%d%d%d",&p,&t,&r);
float interest=(p*t*r)/100;
printf("\n\tInterest amount is %f\n\n",interest);
return 0;
}
```

### Output:

Enter principle, time and rate of interest: 1000 1 25 Interest amount is 250.000000

### Code Explanation

In this program, the user is asked to enter principle, rate of interest, and time period.

Interest is calculated using the formula I=PTR/100 and stored in the variable interest.

Interest is printed onto the console.

## People also ask

### how to find simple interest in c program?

You can find it using formula i=(ptr/100).` float interest=(p*t*r)/100;`