Mitad, cuarto y octavo

Published by SyntaxGardener in

Crea una función que recibe un número y devuelve un array de tres elementos que contiene la mitad, un cuarto y un octavo de ese número, en ese orden.

Ejemplos

Program.HalfQuarterEighth(6) ➞ new[] { 3.0, 1.5, 0.75 }

Program.HalfQuarterEighth(22) ➞ new[] { 11.0, 5.5, 2.75 }

Program.HalfQuarterEighth(25) ➞ new[] { 12.5, 6.25, 3.125 }