program to calculate compound interest-by enggfact - Enggfact

Latest

Convert your Passion into your Profession

Sunday, September 1, 2019

program to calculate compound interest-by enggfact

#include<stdio.h>
#include<math.h>
int main()
{
float p,r,n,CI;
printf("enter p:");
scanf("%f",&p);
printf("enter r:");
scanf("%f",&r);
printf("enter n:");
scanf("%f",&n);
CI=p*pow((1+r/100),n)-p;
printf("\n the value of CI=%f",CI);
return 0;
}

No comments:

Post a Comment