2.10) More On The Equal Sign (cont'd)
A=10.0 A=A+1.0
In mathematics, the second equation
isn’t satisfied by A=10. This is why you must view the =
sign as an assignment operator.
Finally, on the LHS you must only have a single variable (not a number and not a formula). A+1.0=A makes no sense in programming since the value on the right cannot be assigned to the LHS since it is a calculation on the LHS. Likewise, 10=A makes not sense in programming because the RHS cannot be assigned to the LHS.