fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float p ;
  5. scanf("%f" , &p);
  6. float r ;
  7. scanf("%f" , &r);
  8. float t ;
  9. scanf("%f" , &t);
  10. float s = p*r*t/100 ;
  11. printf("Simple Interest : %f " ,s);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Simple Interest : -0.000000