Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() //zad 1.
- {
- int n,wynik=1;
- cout << "Do jakej potegi mam podniesc liczbe 2: " << endl;
- cin >> n;
- while(n>0)
- {
- wynik=wynik*2;
- n--;
- }
- cout << wynik;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement