Simple Interest Program in C

This post explains clearly what is simple interest, the equation to calculate simple interest and how to implement a logical program to find the Simple interest by using given input values in C language syntax.

Simple Interest :

Formula for simple interest as follows
SI = (P*T*R)/100 ;
P is the “Principle amount”
T is the “Time”
R is the “Rate of interest”

#include <stdio.h>
void main()
float amount, time, rate, SI;

printf(“Enter principle amount : “);
scanf(“%f”, &amount);

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

printf(“Enter interest rate : “);
scanf(“%f”, &rate);

SI = (amount * time * rate) / 100;
printf(“Simple Interest = %f”, SI);

Share this