PROGRAM TO CALCULATE SIMPLE INTEREST

/*PROGRAM TO CALCULATE SIMPLE INTEREST*/
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,si;
clrscr();
printf(“Enter the principle amount: “);
scanf(“%f”,&p);
printf(“Enter the rate of interest: “);
scanf(“%f”,&r);
printf(“Enter the time period: “);
scanf(“%f”,&t);
si=(p*r*t)/100;
printf(“Simple interest is: %f”,si);
getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *