Question: Give the output of the loop in Exercise 13. Data from Exercise 13 a. Is this loop a pre-test loop or a post-test loop? b.

Give the output of the loop in Exercise 13.


Data from Exercise 13

Declare Number As Integer Set Number = 2 Repeat Write Number Set Number = Number - 1 %3D Until Number %3D

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?


Declare Number As Integer Set Number = 2 Repeat Write Number Set Number = Number - 1 %3D Until Number %3D

Step by Step Solution

3.45 Rating (174 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Posttest b Write ... View full answer

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 Prelude to Programming Questions!