New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Write any program to count the 1s in binary represention of the taken number?
binary representation of number https://code.sololearn.com/c53Y8rY4nDgn/?ref=app
1 Answer
+ 1
get the number
convert it into binary
convert it into string
measure length
count 1s in a loop
wow!
that was hard...