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