Which looping structure should you use?

You are creating a routine that will perform calculations by using a repetition structure. You
need to ensure that the entire loop executes at least once.
Which looping structure should you use?

You are creating a routine that will perform calculations by using a repetition structure. You
need to ensure that the entire loop executes at least once.
Which looping structure should you use?

A.
For-Each

B.
For

C.
While

D.
Do-While

Explanation:
In a Do..While loop the test is at the end of the structure, so it will be executed at least once.



Leave a Reply 0

Your email address will not be published. Required fields are marked *