C program to calculate compound interest.

#include<stdio.h>
#include<conio.h>

#include<math.h>
int main(){
float p,r,t,ci;
clrscr();
printf("Enter Principal,Rate and Time\n");
scanf("%f%f%f",&p,&r,&t);
ci =(p*pow(1+r/100,t))-p;
printf("Compound interest = %f\n",ci);
getch();
return 1;
}

Comments

Popular posts from this blog

C Language Topics in Hindi and English

C language IMP Questions for BSc/BA/BCom/BCA/BE/BTech/MSc/MCA (CS/IT) I year students