11.8k views
2 votes
5-16-10: what are the values of var1 and var2 after the following code segment is executed and the while loop finishes?

1 Answer

4 votes

Answer:

It is not possible to determine the values of var1 and var2 without more information about their initial values and the conditions under which the while loop will exit. The code segment provided does not contain enough information to determine the final values of the variables.

User Andres Paul
by
7.6k points