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