Nalini1998 / Project_Public

MIT License
2 stars 0 forks source link

Which kind of loop would you use? #550

Closed Nalini1998 closed 1 year ago

Nalini1998 commented 1 year ago

You want to run a code block at least once, then loop as long as a condition remains true. Which kind of loop would you use?

A. A nested for loop

B. A while statement

C. A do...while statement

D. A for statement

Nalini1998 commented 1 year ago

I chose C. A do...while statement