fork download
  1. #include<stdio.h>
  2. int main(){
  3.  
  4. float p = 34.1;
  5. int r = 8;
  6. int t = 5;
  7.  
  8. printf("The value of simple interest is %f", (p*r*t)/100);
  9. return 0;
  10. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
The value of simple interest is 13.640000