BananaMaster

38 - Bucles for anidados, Price Matrix (Lecciones JS)

Si olvidaste algo — haz clic para ir a la lección.

📘 Tarea: Price Matrix

El usuario ingresa un número del 1 al 10. Después de hacer clic en el botón, se debe mostrar el siguiente resultado:

$1
( $11 $21 $31 $41 $51 )

$2
( $12 $22 $32 $42 $52 )

$3
( $13 $23 $33 $43 $53 )

📐 Lógica de funcionamiento:

🧪 Ejemplo:

Input: 3

$1
( $11 $21 $31 $41 $51 )

$2
( $12 $22 $32 $42 $52 )

$3
( $13 $23 $33 $43 $53 )

📐 Estructura HTML del resultado:

<div>
$2
( $12 $22 $32 $42 $52 )
</div>

📌 Importante: