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
Calculate Simple Interest In C
Shobana J
Jul 22, 2016
30.6
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog, you will learn how to calculate simple interest in C.
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.
Calculate Simple Interest
C
Next Recommended Reading
Calculating Hours, Minutes And Seconds in C