PASO 9: Es hora de evaluar la otra opción: si el año es divisible por 400. Esta es nuestra Condición 2 .

  • Desde , agregue Remainder . Cambie my_var a calc_2 y la ecuación al year % 400
  • Desde , arrastre Boolean Variable .
  • Cambie el nombre de la variable a condition_2 y configúrelo igual a esta expresión booleana: calc_2 == 0
  • Desde , use Output Variable y edítela para generar condition_2 con una etiqueta. Hacer clic ¡Correr!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)