# C Program to Calculate Simple Interest

In this C program, we will learn about how to read principal amount, rate of interest and time from user and calculate simple interest. We will first read Principle amount, rate of interest and time using scanf function. We will use below mentioned formulae to calculate Simple Interest (SI).

#### Required Knowledge

• Simple Interest = (Principle x Rate x Time) / 100

## C program to calculate simple interest

```#include <stdio.h>

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

printf("Enter Principle Amount\n");
scanf("%f", &principle);
printf("Enter Rate of Interest\n");
scanf("%f", &rate);
printf("Enter Time of Loan\n");
scanf("%f", &time);

// Simple Interest = (Principle X Rate X Time)/100;
simpleInterest = (principle * rate * time)/100;

printf("Simple Interest = %.2f", simpleInterest);

return 0;
}
```
Output
```Enter Principle Amount
10000
Enter Rate of Interest
5
Enter Time of Loan
2
Simple Interest = 1000.00
```
Related Topics
 C program to calculate compound interest C program to calculate area of any triangle C program to calculate area of a parallelogram C program to count number of digits in an integer C program to find third angle of a triangle C program to make a simple calculator using switch statement C program to find hcf and lcm of two numbers C program to convert kilometer to miles C program to convert kilometer to miles List of all C programs