Do-While Loops

The do-while loop is a version of the while loop. Though it is possible that a program will never enter the loop with a while loop (since it is possible that the condition is already met before entering the loop), do-while loops guarantee that the loop gets performed at least once. Watch this video to learn how do-while loops differ from the standard while loop.


Source: Cave of Programming, https://www.youtube.com/watch?v=Qei2bZ-KB2w
Creative Commons License This work is licensed under a Creative Commons Attribution 3.0 License.

Last modified: Tuesday, November 5, 2019, 5:09 PM