Monday, 8 July 2013

Program to calculate Compound of Interest

#include <stdio.h>
void main()
{
int p,r,t;
float CI;
clrscr ();
printf("Enter the number");
scanf("%d%d%d",&p,&r,&t);
CI=p*pow((1+r)/100,t);
printf("%f",CI);
getch();

}

2 comments:

  1. Programming is something, which cannot be done by everyone. Calculating compound interest was not an easy thing, but these blog and sharing have made it way too easy for us to do all the financial calculations.

    ReplyDelete