fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. long long int awal, total, betskrg;
  7. awal = 14000;
  8. betskrg = awal;
  9. for (int i = 0; i < 11; i++)
  10. {
  11. cout<<betskrg<<endl;
  12. total += betskrg;
  13. betskrg = betskrg * 2;
  14. }
  15. cout<<endl<<total<<endl;
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 4676KB
stdin
Standard input is empty
stdout
14000
28000
56000
112000
224000
448000
896000
1792000
3584000
7168000
14336000

28658000