Question: int x = 4 , z = 0 ; do { x + + ; x - - ; } while ( x < 1

int x =4, z=0;
do {
x++;
x--;
} while(x <10);
z = x;
what would z equal if the above code were run
Group of answer choices
0...it would never end
0...after it ended
10
12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!