The doSomething function
The doSomething function begins in Listing 3.
The code in Listing 3 illustrates the use of Multiplicative and Additive operators along with the use of parentheses to control the order in which the operations are performed.
The symbol for the Multiplicative operator is: *
The symbol for the Additive operator is: +
The output produced by the code in Listing 3 is shown in Figure 1.
Precedence: 6*3+5 = 23 (6*3)+5 = 23 6*(3+5) = 48 Figure 1