207k views
3 votes
What is the value of x after the following code is executed?

x = 0
while x < 20 :
x = x + 1
else :
x = 10

User SoBeRich
by
2.8k points

1 Answer

4 votes
I think it is X equals X +1 and while ex alt 20
User Subham
by
3.4k points