Question: 3. Given the following code var w= 15; var x = 11; var y = x; var z = w; while(x!= 14 ) {
3. Given the following code var w= 15; var x = 11; var y = x; var z = w; while(x!= 14 ) { if(y == x) { y = z + 1; z = z + y; } } else { y = x + 1; z = z+y; } x++; What is the final value assigned to z?
Step by Step Solution
There are 3 Steps involved in it
Code Breakdown The code defines four variables w Assigned the value 15 x Assigned the value 11 y Ini... View full answer
Get step-by-step solutions from verified subject matter experts
