EXTEND: Now modify and extend your program! Be sure to meet these minimum technical requirements:

Use the functions that are already in your code as a guide!

  1. Create a function at the top of your program named square() that asks for a float.
  2. Use Exponents to square the number the user enters and use Say to tell the user the answer.
  3. Add an Else to the conditionals at the bottom of your code and use it to call square().

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)