Mitad, cuarto y octavo

Published by Alon in

Crea una función que recibe un número y devuelve un array de tres números: la mitad del número, un cuarto del número y un octavo del número.

Ejemplos

halfQuarterEighth(6) ➞ [3, 1.5, 0.75]

halfQuarterEighth(22) ➞ [11, 5.5, 2.75]

halfQuarterEighth(25) ➞ [12.5, 6.25, 3.125]

Notas

El orden del array es: mitad, cuarto, octavo.