STEP 7: Let's test this out! To properly test a program that accepts input, we need to try providing different inputs.

  • Click Run and try entering a year that is evenly divisible by 4 (try using 2020).
  • What is the value of calc_1a when you input this number? What is the value of condition_1a?
  • Click Run again and enter a year that is NOT evenly divisible by 4 (try using 2021).
  • What are the values of calc_1a and condition_1a now? Click Submit and Next when you're ready!

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
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)