Tuesday, August 9, 2011

Chapter 4, exercise 7

7.  To what value do each of the following expression evaluate?


a.  (1 + 2 * 3)

7

b.  10 % 3 * 3 - (1 + 2)

0

c.  ((1 + 2) * 3)

9

d.  (5 == 5)

1


e.  (x = 5)

5

No comments:

Post a Comment