FIT
100
© Copyright University of Washington 1999-2000
Mini-Exercise #2 -- Answers
v
v
Suppose the computer executes the following
statements. What is the value of total at the end?
total = 1
total = total + 5
total is 6
v
Harder:
x = 0
x = x+4
x = x*2
x is 8