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
Calculate Simple Interest In C
WhatsApp
Shobana J
8y
30.8
k
0
1
25
Blog
si.zip
Introduction
In this blog, I am going to tell you how to find simple interest.
Simple interest is a method of calculating the interest charge on a loan etc.
Software Requirements
Turbo C++ or C.
Programming
#include < stdio.h >
#include < conio.h >
int
main()
{
float
p, rate, time, si;
printf(
"Enter principal amount : "
);
scanf(
"%f"
, & p);
printf(
"Enter rate of interest : "
);
scanf(
"%f"
, & rate);
printf(
"Enter time period in year : "
);
scanf(
"%f"
, & time);
si = (p * time * rate) / 100;
printf(
"\nSimple Interest = %2f"
, si);
getch();
return
0;
}
Explanation
The programming of simple interest is determined by multiplying the daily interest rate by the principle by the number of days which elapses between the payments.
Output
Conclusion
Thus, the program is executed and printed successfully.
C
Calculate Simple Interest
Up Next
Calculating Hours, Minutes And Seconds in C
Ebook Download
View all
Printing in C# Made Easy
Read by 22.3k people
Download Now!
Learn
View all
Membership not found