Johnatron5464 Johnatron5464
  • 13-01-2021
  • Computers and Technology
contestada

Write a procedure ConvertToBinary that takes an input as a number from 0 to 16 (including 0 but not 16) and converts it to a binary number. The binary number should be returned as a list.

Respuesta :

tonb
tonb tonb
  • 13-01-2021

Answer:

function ConvertToBinary(n) {

 console.log(n.toString(2).split(''));

}

ConvertToBinary(13);

Answer Link

Otras preguntas

what is (9-3)^2-(5x4)^0
144 is what percent of 200?.?.?
Need answer please 8 2 6 3 =14
How does war cause inflation?
2 times n And 5 times b And -7 times n
Express the sum of 9.78 g and 7.0 g using the correct number of significant digits. A. 10 g B. 16.78 g C. 16.8 g D. 17 g
In the late 1920s. many countries signed the Kellogg-Briand Pact. The pact stated that war would not be used "as an instrument of national policy" and was event
Determining Whether an Integer Satisfies an Inequality Jan 11, 8:06:58 PM Which of the following values are solutions to the inequality 1 < 4x - 3? I. 9 II.4
a triangular sign has a base that is to be 4 feet less than twice its height. A local zoning ordinance restricts the area of the signs to be equal 24 square fee
At Hoffman’s Bike Rentals, it cost $44 dollars for 8 hours. How many hours of bike use does a customer get per dollar?