Calculation of simple interest:
simple interest is determined by multiplying the interest rate by the principal by the number of periods. Simple interest is called simple because it ignores the effects of compounding. The interest charge is always based on the original principal, so interest on interest is not included
si = p r t/100 where p is principal, r is rate of interest and t is time
simple interest is determined by multiplying the interest rate by the principal by the number of periods. Simple interest is called simple because it ignores the effects of compounding. The interest charge is always based on the original principal, so interest on interest is not included
si = p r t/100 where p is principal, r is rate of interest and t is time
// write a c program to calculate simple interest
// calculate simple interest in / using c program
// C program to calculate simple interest
#include<stdio.h>
void main()
{
int p,n;
float r,si;
printf("\n enter values of p,n,andr");
scanf("%d %d %f",&p, &n, &r);
si=(float)p * (float)n * r / 100;
printf("simple interest =rs. %f",si);
}
No comments:
Post a Comment