fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. double p,r;
  6. cin >> p >> r;
  7. cout << fixed << setprecision(5) << p * pow(1+r/100,12);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
0.00000