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

An item costs 340 before tax, and the sales tax is 20.40. Find the sales tax rate. Write your answer as a percentage.
Use the graph to determine the y intercept
what is the upper bound and lower bound for 3.53 ?
Based on how some Christian elements are portrayed in "Beowulf," what role did God play in the lives of people during the Anglo-Saxon period? Include page numbe
5x + 2y, when x = 5 and y = -2
(3, r) and (7, 2) m = 1
what property is -6+24=x-24+24
2. A mixing bowl has a mass of 0.5kg. A baker adds 0.0002m of water to the mixing bowl until the total mass of the bowl and water is 0.7kg. a) Calculate the mas
What is an uncharged body? In physics (simple words)
What were the general beliefs in the United States in the 19th century, when women became more involved in social reform? Answer “true” or “false” Women were li