<sectionid="description"> En una declaración de <code>switch</code> , es posible que no pueda especificar todos los valores posibles como declaraciones de <code>case</code> . En su lugar, puede agregar la declaración <code>default</code> que se ejecutará si no se encuentran declaraciones de <code>case</code> coincidentes. Piense en ello como la última instrucción <code>else</code> en una cadena <code>if/else</code> . Una declaración por <code>default</code> debe ser el último caso. <blockquote> interruptor (núm) { <br> valor de caso1: <br> sentencia1; <br> descanso; <br> valor de caso2: <br> declaración2; <br> descanso; <br> ... <br> defecto: <br> declaración por defecto; <br> descanso; <br> } </blockquote></section>
<sectionid="instructions"> Escriba una instrucción de cambio para establecer la <code>answer</code> para las siguientes condiciones: <br><code>"a"</code> - "manzana"<br><code>"b"</code> - "pájaro"<br><code>"c"</code> - "gato"<br><code>default</code> - "cosas"</section>