Simple Interest

 Simple interest:

SI = (P × R ×T) / 100

Where SI = simple interest

P = principal

R = interest rate (in percentage)

T = time duration (in years)


#include<stdio.h>
#include<conio.h>
void main()
{
    int p,t;
    float r,si;
    printf("enter values of p,t,r = ");
    scanf("%d%d%f",&p,&t,&r);
    si=p*t*r/100;
    {
        printf("simple interest = %f",si);
    }
    getch();
}


OUTPUT :

enter values of p,t,r = 35
10
40
simple interest = 140.000000

Comments