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
  • Turbo C++ or C. 
Programming
  1. #include < stdio.h >   
  2. #include < conio.h >   
  3. int main()   
  4. {  
  5.     float p, rate, time, si;  
  6.     printf("Enter principal amount : ");  
  7.     scanf("%f", & p);  
  8.     printf("Enter rate of interest : ");  
  9.     scanf("%f", & rate);  
  10.     printf("Enter time period in  year : ");  
  11.     scanf("%f", & time);  
  12.     si = (p * time * rate) / 100;  
  13.     printf("\nSimple Interest = %2f", si);  
  14.     getch();  
  15.     return 0;  
  16. }  
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.

     programming
Output

Output 
 
Conclusion
  • Thus, the program is executed and printed successfully.