MeehoweCK

Untitled

Oct 1st, 2020
426
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.    int liczba;
  8.     int potega = 1;
  9.  
  10.     cout << "Podaj liczbe: " ;
  11.     cin >> liczba;
  12.  
  13.     while (potega < liczba) {
  14.         cout << potega << endl;
  15.         potega = potega * 2;
  16.     }
  17.     return 0;
  18. }
RAW Paste Data