Assignment, then input

An assignment works out the right side to one value first and only then stores it in the variable on the left, so x = x + 1 makes sense, and a variable needs a value before it is used.

From AP Computer Science A.