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 government orders every factory to adopt a new technology, which reduces carbon-dioxide emissions into the atmosphere.
How Do I Simplify: 5/3+i
an employee is found to have grossly mistreated a client, which the employee has never done before. what consequence should be administered to the employee?
Find sin e, cos e, and tan e. P(-²/2 - 12) 2 a. sino--coso-, tan 0-√3 3 sino-- cose--, tan 0= -√3 b. C. sine--, cose= d. sine--, cose-- 15 Please select the bes
Palabra derivada del Sol
Archaeologists discovered a new set of mummies in egypt with what unique feature?
How does Achebe create a "new English" with his use of language in "Civil Peace"? He fills his English with Igbo language patterns and rhythm. a He creates a co
Below are two inequalities and the graphs of their lines without the shading. By imagining where the shading should be, identify which point would satisfy BOTH
7/1 in simplest form​
what are 4 research questions that would help you write a good persuasive report?