Bhuvan InfoTech Android App

Download our Android App and browse Technical News, Projects, Computer Tricks more easily with lots of Interesting Features.

Tuesday, June 14, 2016

Find Compound Interest | C program

#include <stdio.h> #include <math.h> int main() { float p, r, year, ci; printf("Type principal Amount: "); scanf("%f", &p); printf("Type rate of Interest: "); scanf("%f", &r); printf("Type time in years: "); scanf("%f", &year); ci=p*((pow((1+r/100),year)-1)); printf("Compound interest is: %f\n",ci); return 0; }
Bhuvan Arora

No comments:

Amazing Deal !