Advertisement
MeehoweCK

Untitled

Aug 6th, 2021
839
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void x(int n)
  6. {
  7.     for(int i = 2; i < n; i *= 2)
  8.         cout << i << endl;
  9. }
  10.  
  11. int main()
  12. {
  13.     int n;
  14.     cin >> n;
  15.     x(n);
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement