C To Find Compound Interest When Principle Amount ,Rate Of Interest And Time Is Given
/*To Find Compound Interest When Principle Amount ,Rate Of Interest And Time Is Given*/
#include<stdio.h>
#include<math.h>
int main()
{
float principal,rate,time,compound;
printf("Enter The Principal amount In Rs.:--");
scanf("%f",&principal);
printf("Enter The Rate Of Interest :--");
scanf("%f",&rate);
printf("Enter The Time In Years.:--");
scanf("%f",&time);
compound=principal*pow((1+rate/100),time);
printf("Simple Interest For Above Data :--Rs.%f",compound);
return 0;
}
/*To Find Compound Interest When Principle Amount ,Rate Of Interest And Time Is Given*/
#include<stdio.h>
#include<math.h>
int main()
{
float principal,rate,time,compound;
printf("Enter The Principal amount In Rs.:--");
scanf("%f",&principal);
printf("Enter The Rate Of Interest :--");
scanf("%f",&rate);
printf("Enter The Time In Years.:--");
scanf("%f",&time);
compound=principal*pow((1+rate/100),time);
printf("Simple Interest For Above Data :--Rs.%f",compound);
return 0;
}
0 Comments