Sunday 21 January 2018

Program for Compound Interest


Program for Compound Interest
/*programme to cal compound intrest*/
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int p,r,n;
float ci;
printf("enter the values of p,r,n");
scanf("%d%d%d",&p,&r,&n);
ci=p*(pow(((1+r)/100),n));
printf("ci=%f\n",ci);
getch();
}

0 comments:

Post a Comment