Get reliable answers to your questions at Westonci.ca, where our knowledgeable community is always ready to help. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

Write a program binary.cpp that reads a positive integer and prints all of its binary digits.

Sagot :

Answer:

View image below.

Explanation:

They're just asking you to create a num2bin function on Cpp.

If you search for "num2bin in C", you can find a bunch of answers for this if you think my solution is too confusing.

One way to do it is the way I did it in the picture.

Just copy that function and use it in your program. The rest you can do yourself.

View image GrandNecro