Feb 2, 2013

Compound Interest Program

/*Compound Interest Program*/

#include"stdio.h"
#include"conio.h"
void main()
{
clrscr();
float p,r,n,f;
printf("Enter the value of principal value.");
scanf("%f"&p):
printf(Enter the number of years.");
scanf("%f"&n);
i=r/100;
i=i+1;
f=p*(pow(i,n));
printf("The final value is=%f",f);
getch()
{












No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts