Question 2-2

Fully parenthesize the following expression to illustrate the order in which Smalltalk will evaluate it.

   2     +     3     factorial     *     4     gcd:     12     -     4

Solution

(( 2     +   ( 3     factorial ))  *     4 )   gcd:  ( 12     -     4 )

Back to Quiz 2