Lesson goal: Introduction to Variables

Previous: Speaking numbers properly | Home | Next: Mathematical expressions with variables

Test question: Write a 2 line program. The first line should assign the variable x equal to some number. The next line should display the value of the expression (x+5)/2-3*x^2+16 when x=3. Try it again for other values of x.

Write your code that will answer the test question...

Type your code here:


See your results here: