Paste Search Dynamic
Recent pastes
count range
  1.  
  2.  
  3. n = int(input())
  4. count = 0
  5.  
  6. for i in range(0,32):
  7.         if((n>>i)&1):
  8.                 count+=1
  9. print(count)
Parsed in 0.001 seconds