fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. // your code goes here
  5. int p, r, t, int_amt;
  6. printf("Input principle, Rate of interest & time to find simple interest: \n");
  7. scanf("%d%d%d",&p,&r,&t);
  8. int_amt=(p*r*t)/100;
  9. printf("Simple interest = %d",int_amt);
  10. return 0;
  11. }
Success #stdin #stdout 0s 4392KB
stdin
Standard input is empty
stdout
Input principle, Rate of interest & time to find simple interest: 
Simple interest = -9622415