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