Similar to the while loop, the do..while loop is used to build iteration in your programs as well but it has a striking difference from the while loop.
The do while loop’s condition is at the bottom of the loop rather than at the top.
Using the do..while loop allows to execute the statements inside of my loop at least once, even though the loop’s condition will be false when evaluated.
To demonstrate, take another look at the first while loop from the previous section, shown next.