Professional Documents
Culture Documents
My Second C Project
My Second C Project
h>
#include <math.h>
int main()
{
int p,n;
float r,ci,I;
I = 600000;
n = 1.0;
r = 10;
p= I/pow((1+r/100), n) -1;
printf("Compound Interest=%f\n",ci);
printf("Principal=%d\nRate=%f\n",p,r);
/* I = ci - p;
printf("Interest=%f\n",I); */
return 0;
}