fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. float principle, time, rate, SI;
  6.  
  7. printf("Enter principle: ");
  8. scanf("%f", &principle);
  9.  
  10. printf("Enter time: ");
  11. scanf("%f", &time);
  12.  
  13. printf("Enter rate: ");
  14. scanf("%f", &rate);
  15.  
  16. SI = (principle * time * rate) / 100;
  17.  
  18. printf("Simple Interest = %f", SI);
  19.  
  20. return 0;
  21. }
  22.  
  23.  
Success #stdin #stdout 0.01s 5280KB
stdin
2600
45
32
stdout
Enter principle: Enter time: Enter rate: Simple Interest = 37440.000000