Home Segments Index Top Previous Next

384: Mainline

In the example in Segment 383, the parameter, element, is assigned successively to 570, 720, 640, and 720 with the statement in the block evaluated each time:

Iteration Value of element New value assigned to sum
1 570 0 $+$ 570 $=$ 570
2 720 570 $+$ 720 $=$ 1290
3 640 1290 $+$ 640 $=$ 1930
4 720 570 $+$ 720 $=$ 2650