{{{

  1. include<stdio.h>

void main() { int num,rem,cnt=0; printf("\n Enter number"); scanf("%d",&num); while(num>0) { rem=num%2; num=num/2; if(rem==1) { cnt++; } }

printf("%d",cnt);

} }}}