Solución
solution.tsTypeScript
export function calculateIMC(weight: number, height: number): number {
if (weight >= 0 && height > 0) {
// const doubleHeight = height* height;
const result = (weight / Math.pow(height, 2)).toFixed(2)
return Number(result)
}
return 0;
}0respuestas