Lesson 3 of 11 · 6 min
Variables and operators
Programs do math with operators: + − × ÷. We store results in variables. For example: total = price × quantity. Comparison operators (>, <, =) ask true/false questions used in decisions.
total = price × qty
Operators do math; variables store results
Let’s try it! ✍️
Question 1 of