JakubKaczmarek_123

z14

Dec 4th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int a, b = 2;
  5.  
  6. int main(){
  7. for (int i = 1; i <= 30; i++){
  8. a += b;
  9. b *= 2;
  10. }
  11. cout << "syn zaoszczedzil " << a << " zl" << endl;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment