Skip to content
Home » Blog » C Program to Calculate Simple Interest

C Program to Calculate Simple Interest

Calculate Simple Interest

In this tutorial, you’ll learn How to Calculate Simple Interest in C Programming.

Simple interest is a quick method to calculate the interest charge on a loan. To Calculate Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments.

Simple Interest formula

The formula for simple interest is given by – simple interest = principle x rate x time / 100

P is the principal amount
T is the time and
R is the rate

The logic to calculate a simple interest

Step by step descriptive logic to calculate simple interest –

  1. Input principle amount in some variable says principle.
  2. Input time in some variable says time.
  3. Input rate in some variable says rate.
  4. Now, apply the formula to calculate simple interest i.e. SI = (principle * time * rate) / 100.
  5. Finally, print the resultant value of SI.

Program to calculate the simple interest

[sourcecode language=”plain”]
#include <stdio.h>

int main()
float principle, time, rate, SI;

/* Input principle, rate and time */
printf("Enter principle (amount): ");
scanf("%f", &principle);

printf("Enter time: ");
scanf("%f", &time);

printf("Enter rate: ");
scanf("%f", &rate);

/* Calculate simple interest */
SI = (principle * time * rate) / 100;

/* Print the resultant value of SI */
printf("Simple Interest = %f", SI);

return 0;


Related C Programs

Ask your questions and clarify your/others doubts on C Program to Calculate the Simple Interest by commenting. Documentation