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