#include<stdio.h> #include<math.h> int main() { float p,rate,time,ci; printf("Enter principal amount : "); scanf("%f", &p); printf("Enter interest rate : "); scanf("%f", &rate); printf("Enter time period in year : "); scanf("%f", &time); ci=p*(pow((1+rate/100),time)-1); printf("\nCompound interest = %f",ci); return 0; }
9. Write a C program to determine the amount of compound interest to be paid by the borrower, if the principal amount, rate of interest, and tenure are entered by the user.
Posted: September 15, 2012 in CSE Sem1, ECE Sem1, Lab 9, Lab 90