Program to find compound interest in c language




















Compound Interest is the interest computed on the initial principal amount and also on the accumulated interest of previous periods of a deposit or a loan. If you have any doubts or compilation errors in this C program to compute compound interest, let us know about it in the comment section below.

Thanks for this awesome code. But, in Linux it gives an errof regarding the pow method. Please help. Compound Interest is too powerful as compared to the Simple Interest.

The compound interest ads the annual interest to the principal amount and the next year interest is calculated on the principal and previous interest received. Therefore, the benefits out of compound interest are much more.

Necessary cookies are absolutely essential for the website to function properly. It is the result of reinvesting interest, rather than paying it out, so that interest in the next period is then earned on the principal sum plus previously-accumulated interest. It may be contrasted with simple interest , where interest is not added to the principal, so there is no compounding. Note that this formula gives you the future value of an investment or loan, which is compound interest plus the principal.

Should you wish to calculate the compound interest only, you need this:. This program will read principal, rate and time in years and then print compound interest on entered principal for given time period. Finally, the result is displayed to the screen using printf function. I hope after going through this tutorial, you understand how to calculate compound interest using C Programming language. If you have any doubt regarding the program, feel free to contact us in the comment section.

We will be delighted to help you. Your email address will not be published.



0コメント

  • 1000 / 1000