C Progam to Calculate Simple Interest and Amount on Loan.

Simple Interest is calculated using the formula

SI = (PxRxT)/100

Where the terms are:


SI = Simple Interest
P = Principle
R = Rate of Interest (In Percentage)
T = Time Period (in Years)
Simple Interest Calculation Application using C
You can find the C language based source code of this program below.



/*C PROGRAM TO CALCULATE SIMPLE INTEREST
PROGRAMMED BY: AMIT BISWAL
URL: http://amitbiswal.blogspot.com
*/
#include <stdio.h>
#include <conio.h>
int main()
{
    float p,r,t,si;
    printf("*********PROGRAM TO CALCULATE SIMPLE INTEREST***********\nEnter Principle\t");
    scanf("%f",&p);
    printf("\nEnter Interest Rate (in Percentage)\t");
    scanf("%f",&r);
    printf("\nEnter Time Period (in Years)\t");
    scanf("%f",&t);
    si=p*r*t/100.0;
    printf("\n*****************************************************\n\nSIMPLE INTEREST: %0.2f\nAMOUNT PAYABLE: %0.2f",si,p+si);
    printf("\n*****************************************************");
    getch();
}



No comments

If you liked this blog then Join me at:
Facebook
Twitter