TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Finding Compound Interest In Programming
Shobana J
Jul 17, 2016
27.8
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog, you will learn how to find the compound interest.
cmpd (2).zip
Introduction
In this blog, I am going to explain how to find the compound interest in C programming.
Software Requirements
Turbo C++ or C.
Programming
#include < stdio.h >
#include < math.h > int main()
{
float
amount, rate, time, CI;
printf(
"Enter principle (amount): "
);
scanf(
"%f"
, & amount);
printf(
"Enter time: "
);
scanf(
"%f"
, & time);
printf(
"Enter rate: "
);
scanf(
"%f"
, & rate);
CI = amount * (pow((1 + rate / 100), time) - 1);
printf(
"Compound Interest = %f"
, CI);
return
0;
}
Explanation
In the programming, given above, the compound interest can be calculated by a simple formula and it can be in a simple manner.
Output
Conclusion
Thus, the program can be executed and printed successfully.
Finding Compound Interest
C
Next Recommended Reading
Finding Area Of Circle In C Programming