fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int x =8;
  7. while(x){
  8. cout<<x<<endl;
  9. x>>=2;
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5460KB
stdin
Standard input is empty
stdout
8
2