/*****************<soeasyprograms.blogspot.in>******************/
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,si;
clrscr();
printf("Enter the principle ");
scanf("%f",&p);
printf("Enter the rate of interest per annum ");
scanf("%f",&r);
printf("Enter the time period in years ");
scanf("%f",&t);
si=(p*r*t)/100.00;
printf("\nSimple interest for given values is %f",si);
getch();
}
/*****************<soeasyprograms.blogspot.in>******************/
No comments:
Post a Comment