Consider the following loop: a. Is this loop a pre-test loop or a post-test loop? b. List

Question:

Consider the following loop:

Declare Number As Integer Set Number = 2 While Number != 0 Write Number Set Number Number - 1 End While

a. Is this loop a pre-test loop or a post-test loop?

b. List the statements in the body of the loop.

c. What is the test condition for this loop?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: