Write the algorithm for calculating the number of '1' bits in the binary representation of a decimal?
my TA gave me a little help but I am still confused. I know it involves a for loop and the decimal ped in will be divided by two and also modulus by two...hope you can help
No comments:
Post a Comment