Introduction to C language
Program to find CompoundInterest




/*To find the compound interest*/

‡include<math.h>
main()
{
float p,t,r,ci,m;
clrscr();
printf("\nEnter amount,interest and time period");
scanf("%f%f%f",&p,&t,&r);
m=(1+(r/100));
ci=p*pow(m,t);
printf("\nCompound inerest is %0.2f",ci);
getch();
}



 
-----------------------------------------------------------------------------------------
please mail comments to vgdarur@gmail.com
 

 

www.iforerunner.com