Number of 1's in Binary

# Introduction In this challenge, you are asked to write a C program that takes an integer as input and outputs the number of 1's in its binary representation. For example, if the input is 9, which is represented in binary as 1001, the output should be 2.

|60 : 00

Click the virtual machine below to start practicing