You are on page 1of 1

#include <stdio.

h>
#include <math.h>

int main()
{
int p,n;
float r,ci,I;

I = 600000;
n = 1.0;
r = 10;

/*Formula for simple interest*/

/*ci = p*pow((1+r/100), n);*/

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

You might also like