Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int a, b = 2;
- int main(){
- for (int i = 1; i <= 30; i++){
- a += b;
- b *= 2;
- }
- cout << "syn zaoszczedzil " << a << " zl" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment