Calculate Simple Interest In C
In this blog, you will learn how to calculate simple interest in C.
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
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.