Hello World!

Step 5 – Using numbers in variables

Now lets try something else.

Try this code.

  1. Ask the user how old they are. Store the answer in a variable called userAge – use another input line to do this
  2. Then print the age out – use a print line
  3. Run your code to check that it works

That should work just fine.