fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int SI,p,r,t;
  6. p=5000;
  7. r=12;
  8. t=2;
  9. SI=(p*r*t)/100;
  10. printf("Simple Interest is: %d", SI);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
Simple Interest is: 1200