logo

Crowdly

Browser

Add to Chrome

How many times is the while loop run during the final iteration of the for loop?...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

How many times is the while loop run during the final iteration of the for loop?

for i = 5:-1:1

    k = -5

    while k < i

        k = k + 1;

        i = i - 1;

    end

end

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on lms.monashcollege.edu.au?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome