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

The height of a goal post in soccer is - metres​
Which would use more energy, a 50-watt bulb or a 75-watt bulb left on for the same amount of time?
(PLZ HELP) What was the impact of the Supreme Court decision in Worcester v. Georgia? A: The Supreme Court said Georgia had the right to break its treaty with t
Can someone please help me with one or both of these problems, I'm so confused but the assignment is due soon!!
What is one unique feature of Christianity, A belief that Jesus Christ is the son of god, B belief in reincarnation through castes, C belief in multiple gods, D
Reggie deposited $1200 into an account that earns 5% compound interest yearly if he does not deposit any more to the account or take any money out of the accoun
8. An average adult male has a VO2 max of 38. false true
different between regionalism and federalism in a sentence?​
Solve for x using the image (show work)
The country we studied which is noted for its tourist resorts is _____. Ecuador Bolivia Paraguay Uruguay