EJERCICIO CON IF Y FOR

Creamos el siguiente circuito

CODIGO