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

Evaluate 2h(3)-4g(-1)
The figure below shows segments KL and MN which intersect at point P. Segment KM is parallel to segment LN: Two line segments KL and MN intersect at P. Segments
Derek found a function that approximately models the population of iguanas in a reptile garden, where x represents the number of years since the iguanas were in
17.1 is what percent of38
Consequences of the gilded age
In the figure below, P is the centroid of the triangle ABC. Find the length of AP and AR when PR is 6.
The word theological contains the Latin root theo, which means God. Which of these also contains the Latin root theo? A) method B) polytheism C) theory Elimi
Which training principle states hat exercising a certain body part or practicing a particular skill primarily develops that park or skill
find the area of a regular heptagon with a side length of 6 and an apothem of 4 A) 84 B)85 C)86 D)87
The perimeter of a Triangle is 145 centimeters one side Measures 44 centimeters (cm) another side Measures 54 centimeters what is The length of The remaining si