Question: PARTICIPATION ACTIVITY 5 . 2 . 5 : While loop iterations. What is the output of the following code? ( Use IL for

PARTICIPATION ACTIVITY
5.2.5: While loop iterations.
What is the output of the following code? (Use "IL" for infinite loops.)
1)
x =0
while x >0:
print(x, end='')
x = x -1
print('Bye')
Check
Show answer
2)
x =5
y =18
while y >= x:
print(y, end='')
y = y - x
Check
Show answer
3)
x =10
while x !=3:
print(x, end='')
x = x /2
Check
Show answer
4)
x =1
y =3
z =5
while (not (y < x < z)):
print(x, end='')
x = x +1
Check
Show answer

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 Databases Questions!