Contact PSVM   (Q & A)  |  Notes Below   Audio  |  [toc]   [prev] Slide 5 of 13 [next]
SIJLesson13 Slide05
1, 2, 3, 4, [5 (top)], 6, 7, 8, 9, 10, 11, 12, 13, [Lab]

Notes for Slide 05
The subtraction-operator: - :is placed between two
numbers in order to subtract the second number from
the first number.
Unlike the comparison operators which result in a boolean value,
the subtraction-operator results in an int value.
The statement that we have seen so far that contain a
subtraction-operator is the set-statement.
Although this is a review, it is also a good time to
complete the description of the subtraction-operator.
It does not actually have to be placed between two
numbers. If the first number is zero, you do not
have to actually show the zero.
This is a shorthand way of negating a number.
It only saves you from typing one key on the
keyboard, but it might make understanding your
program easier to read.


1, 2, 3, 4, [5 (top)], 6, 7, 8, 9, 10, 11, 12, 13, [Lab]