| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 10 of 13 [next] |
|
|
| 1, 2, 3, 4, 5, 6, 7, 8, 9, [10 (top)], 11, 12, 13, [Lab] |
|
Notes for Slide 10 Now that you have been shown all the arithmetic operators for int values, there is one small but important detail to clarify. If you use parens, the operations inside the ( and the ) will happen before any other operations. If there are parens inside of other parens, the conditions in the inside parens are calculated first. The best way to guarantee that the computer will do what you want is to correctly specify the order in which you want the operations to be calculated using parens. If you do not use parens, the slide shows which operators will be calculated first. WARNING: the operations do not necessarily go left to right. 1, 2, 3, 4, 5, 6, 7, 8, 9, [10 (top)], 11, 12, 13, [Lab] |