Answer the question
In order to leave comments, you need to log in
How many times are the loops executed?
Hello. Please tell me why from this figure in the first example the cycle is executed 1 time, in the third example 7 times, in the fifth 8 times. Can someone explain in simple terms. that he could not understand.
Answer the question
In order to leave comments, you need to log in
In the first example, count is multiplied by a negative number -1 and exits the while as it becomes negative.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question