Calculate the simple interest program

0

This program is calculating the simple interest. In this program we used principle interest, rate of interest, time period,and simple interest






CODES:

  1. #include<stdio.h>
  2. #include<conio.h>
  3. int main ( )
  4. {
  5. float    p,r,t,si;
  6. printf ("enter the principle interest");
  7. scanf ("%f",&p);
  8. printf (" enter the rate of interest");
  9. scanf ("%f",&r);
  10. printf ("enter the time period");
  11. scanf ("%f",&t);
  12. si=p*r*t/100;
  13. printf ("simple interest is =%f",si);
  14. getch( );
  15. }

INPUT:

  • enter the principle interest  1200
  • enter the rate of interest       10
  • enter the time period             4
OUTPUT:
simple interest is= 480           


Editor : Mr.Sagar
      



Post a Comment

0Comments
Post a Comment (0)