#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;
}
#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