**Simple interest program in c** is a simple mathematical equation solving program to calculate simple interest.

**What is Simple Interest?**

Simple interest: Simple interest is the method of finding the interest charges on loan. Simple interest is determined by multiplying interest rate, principal and number of days.

**Simple Interest formula**

Simple interest = (rate * principal * no of days)/100

Where the principal is the principal amount to be invested

Rate is the interest rate in percentage

And no of days is a time period for the investment.

**Example** :-

Principal = 1200

Rate = 4.6

Time = 2

Simple interest = (1200 * 4.6 * 2)/100

Simple interest = 110.4

## Algorithm for simple interest program in c

- Declare variable
- Take input principal, rate and time from user
- Calculate simple interest

Simple interest = (rate * principal * no of days)/100 - Print simple interest

## C program to find simple interest

#include<stdio.h> main() { float p,r,t,simpleInterest; printf("Enter Pricipal\n"); scanf("%f",&p); printf("Enter Rate in percentage \n"); scanf("%f",&r); printf("Enter Time in years(decimals)\n"); scanf("%f",&t); simpleInterest=(float)(p*r*t)/100.0; printf("Simple Interest is %f\n",simpleInterest); }

**Output :**