- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Compound interest is the simple interest that is compounded annually i.e. the interest will be calculated and added to the principal amount every year. This increases the overall interest as compared to simple interest. There is a different mathematical formula to calculate the compound interest. Lets see with the an example,

Input:p=5, r=4, t=5 Output:1.083263

Compound Interest = Principle * (1 + Rate / 100)^time CI=5*(1+4/100)^5 CI=1.083263

#include <iostream> #include <math.h> using namespace std; int main() { float p, r, t, ci; p=5; r=4; t=5; ci = p * pow((1 + r / 100), t) - p; printf("%f", ci); return 0; }

- Related Questions & Answers
- C Program for compound interest?
- Python Program for compound interest
- Program to find compound interest in C++
- Java Program to calculate Compound Interest
- Compare simple interest and compound interest.
- Calculate compound interest in JavaScript
- C Program for simple interest?
- C++ program to find the rate percentage from compound interest of consecutive years
- Python Program for simple interest
- Compound Literals in C
- Simple interest in Python Program
- Compound Assignment Operators in C++
- Compound assignment operators in C#
- Compare fixed interest rate and floating interest rate
- Python Program to Compute Simple Interest Given all the Required Values

Advertisements