fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int p,t;
  6. double r,si;
  7. p=7000;
  8. r=7.5;
  9. t=5;
  10. si=(p*r*t)/100;
  11. printf("simple interest =%f",si);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 4284KB
stdin
Standard input is empty
stdout
simple interest =2625.000000