fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5. double T;
  6.  
  7. void init(){
  8. cin >> T;
  9.  
  10. }
  11. void solve(){
  12. for (int i = 1; i <= 10; i++) {
  13. T = T +T*0.05;
  14. cout << fixed << setprecision(3) << T << endl;
  15. }
  16. }
  17.  
  18. int main(){
  19. init();
  20. solve();
  21. return 0;
  22.  
  23. }
  24.  
Success #stdin #stdout 0s 5312KB
stdin
10
stdout
10.500
11.025
11.576
12.155
12.763
13.401
14.071
14.775
15.513
16.289