fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5. double money, duration, interest;
  6. scanf("%lf %lf %lf", &money, &duration, &interest);
  7. printf("%.f\n", money * pow(1 + interest / 100, duration));
  8. return 0;
  9. }
Success #stdin #stdout 0s 4500KB
stdin
10000000 10 5
stdout
16288946