Simple Interest (S.I.) is a way for figuring out how much interest will accrue on a specific principle sum of money at a certain rate of interest.

SImple Interest Formula

Simple interest is calculated using the following formula: simple interest = (P * T * R) / 100. where P stands for principle, T for period, and R for interest rate.

Return Statement in C

Returning control to the caller function puts an end to the execution of a function. At the instant after the call, execution picks back up in the caller function. The calling function may receive a value from a return statement.

Simple Interest Program in C

#include<stdio.h>
int main()
{
int p,r,t,amount;
printf("Input principle, ROI & time to find Simple Interest \n");
scanf("%d%d%d",&p,&r,&t);
amount=(p*r*t)/100;
printf("Simple interest = %d",amount);
return 0;
}

Output:

Input principle, ROI & time to find Simple Interest 3000 50 60 Simple interest = 90000