Write C Program to Calculate Simple Interest.

Simple interest is calculated by multiplying the interest rate by the principal by the number of periods.

Simple Interest is S.I = (P * R * T)/100

P is the Principal amount

R is the interest rate

T is the duration .

Simple interest is calculated by multiplying the interest rate by the principal by the number of periods.

Simple Interest is S.I = (P * R * T)/100

P is the Principal amount

R is the interest rate

T is the duration .

### C Program to Calculate Simple Interest

#include<stdio.h> int main() { /* Declare variables, to hold the value. */ int principal, rate, time,si; printf("Enter principal \n "); scanf("%d", &principal); printf("Enter rate of interest \n "); scanf("%d", &rate); printf("Enter time \n "); scanf("%d",&time); /* Simple interest calculation. */ si = (principal * rate * time) / 100; printf("\nSimple Interest %d", si); return 0; }

**Output:**

Enter principal 1000 Enter rate of interest 8Enter time 3 Simple Interest 240

## No comments:

## Post a Comment