Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Finding Compound Interest In Programming
WhatsApp
Shobana J
8y
28.1
k
0
1
25
Blog
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.
C
Finding Compound Interest
Up Next
Finding Area Of Circle In C Programming
Ebook Download
View all
Printing in C# Made Easy
Read by 22.3k people
Download Now!
Learn
View all
Membership not found