fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. float p,t,r,si;
  5. printf("enter principal amount");
  6. scanf("%d",&p);
  7. printf("enter time");
  8. scanf("%d",&t);
  9. printf("enter rate of interest");
  10. scanf("%d",&r);
  11. si=(p*t*r)/100;
  12. printf("interest amount is %f");
  13. return 0;
  14.  
  15. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
enter principal amountenter timeenter rate of interestinterest amount is 0.000000