Home Segments Top Top Previous Next

86: Mainline

Arithmetic expressions can contain one operator, but they can also contain no operators or more than one operator:

6               // Literal expression 
x               // Variable expression 
6 + 3 + 2       // Produces 11 
6 - 3 - 2       // Produces 1 
6 * 3 * 2       // Produces 36 
6 / 3 / 2       // Produces 1