Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- { int x, wynik=1;
- cout << "podaj ile razy potegowac liczbe 2" << endl;
- cin>>x;
- while (x>0)
- {
- wynik=wynik*2;
- cout <<" "<<wynik;
- x=x-1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement