Mini-Exercise #2 -- Answers
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