flute9289 flute9289
  • 06-05-2021
  • Computers and Technology
contestada

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

Respuesta :

GrandNecro
GrandNecro GrandNecro
  • 06-05-2021

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.

Ver imagen GrandNecro
Answer Link

Otras preguntas

What was the relationship between John Locke and Thomas Jefferson?
Ayer nosotros ___________ 2.500 pesos.
What are the three mechanisms for heat transport?
which of the following developments is an example of globalization
Math homework help (99 pt)
how would your weight change with time if you were on s space ship traveling away from Earth toward the moon
A certain type of parasite measures .0012 mm on its first day of life. It then triples in length each day after that. How many days will it take for the parasit
what did many protestants believe their faith gave them
Which was a major issue that led the crimean war
what progressive organization had a goal of providing food and shelter to the slum-dwelling poor