Advertisement
hasib_mo

Binary

Mar 17th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int i=35,j=0;
  6. for(;i<=0;i=i/2)
  7.    {
  8. if(i%2==1)
  9.      {
  10. j++;
  11.      }
  12.   }
  13. cout<<j;
  14. return 0;
  15.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement