count number of 1's

given a number you have to find number of 1's in its binary form.
ex:-5 = 101
output:-2

Comments

Popular posts from this blog