fork download
  1. #include <stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. int p,r,t,ci;
  6. printf("emter the values");
  7. scanf("%d %d %d",&p,&r,&t);
  8. ci=p*(pow(1+r/100,t));
  9. printf("compund interest is %d",ci);
  10. }
Success #stdin #stdout 0s 5324KB
stdin
45
stdout
emter the valuescompund interest is -2147483648