Respuesta :

int count(int num)

if   num==0   return  0;
return   (n&1)+count (n/2)