write a c program to find simple interest

                                           c-program

                         write a c program to find simple interest 


  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. float P,R,T,SI;
  6. clrscr();
  7. printf("enter the values of principal,rate of interest,time(in years)");
  8. scanf("%f%f%f",&P,&R,&T);
  9. SI=0.01*P*R*T;
  10. printf("simple interest = %f",SI);
  11. getch();
  12. }

                                                         output 


      precautions :- 



  1. you take care about semi colon (terminators )
  2. if you are using float data base than keep in mind with float we use %f
  3. at last don't forget to write getch();
  4. and don't forget to close the entire program 


subscribe my youtube channel .

Comments