Program to find compound intrerest

 #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

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online