Program to find compound intrerest January 01, 2018 Programing In C No comments #include<stdio.h> #include<conio.h> #include<math.h> void main() { float p,s,r,a,n,m; clrscr(); printf("Enter the value of p,r,n"); scanf("%f%f%f",&p,&r,&n); s=(1+r/100); m=pow(s,n); a=m*p; printf("\n compound interest %f",a); getch(); } Output Enter the value of p,r,n=101,11,1 compound interest=112.11 Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment