ACPrimer

POJ 2390 Bank Interest

May 26th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {
  5.     int a,b,n;
  6.     while(scanf("%d%d%d",&a,&b,&n)!=EOF)
  7.     {
  8.         printf("%d\n",(int)(pow(1.0+a/100.0,n)*b));
  9.     }
  10.     return 0;
  11. }
Add Comment
Please, Sign In to add comment