fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // finding the simple interest
  5. int p;
  6. double r,t,si;
  7. p=20000,r=7.25,t=3.5;
  8. si=(p*r*t)/100;
  9. printf("value of simple interest is %f",si);
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4520KB
stdin
Standard input is empty
stdout
value of simple interest is 5075.000000