Question: The following code has an infinite loop. Explain why. n = 10 m = -9 count = 1 while not (n < 0 and
The following code has an infinite loop. Explain why. n = 10 m = -9 count = 1 while not (n < 0 and m < 0): count count +n + m E m = m - 1 n = n + 1 print(count)
Step by Step Solution
There are 3 Steps involved in it
The code provided is designed to execute a while loop which continues as long as both n and m are no... View full answer
Get step-by-step solutions from verified subject matter experts
