CS 111 - 9/25/12 Project 1 Due next next Tuesday, 10/2/12 Exam 1 is on Thursday, 10/4/12 during lecture What is the value of z when the following code finishes execution? ========================== int x; int y; int z; x = 0; y = 2; z = 0; while ( x < 5 ) { z = z + y; x = x + 1; } ========================= x: 0 1 2 3 4 5 y: 2 z: 0 2 4 6 8 10 z has a value of 10