#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float p,n,r,ci;
clrscr();
printf("\n enter the value of p");
scanf("\n %f",&p);
printf("\n enter the value of n");
scanf("\n %f",&n);
printf("\n enter the value of r");
scanf("\n %f",&r);
ci=p*pow((1+r)/100,n);
printf("\n %f",ci);
getch();
}
#include<conio.h>
#include<math.h>
void main()
{
float p,n,r,ci;
clrscr();
printf("\n enter the value of p");
scanf("\n %f",&p);
printf("\n enter the value of n");
scanf("\n %f",&n);
printf("\n enter the value of r");
scanf("\n %f",&r);
ci=p*pow((1+r)/100,n);
printf("\n %f",ci);
getch();
}