Solución

@wirex97·11/9/2026TypeScript
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
Respuestas

Aún no hay respuestas

¡Sé el primero en responder!

Escribir un comentario

Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.

Debes iniciar sesión para publicar un comentario.