While and Do While are loops, their content "may" run repeatedly, depending on a condition.
Using the structure while only happens to execute its content if a condition is checked what can happen 0, 1 or more times. Do While works in a similar way, only that we make sure that the content is executed at least once, that is, even if its condition is not fulfilled, its content is executed.
These structures are presented in the following way:
// while
while (expression) {
// statements
}
// do-while
do {
// statements
} while (expression);
where expression is the condition to evaluate to enter or not to execute the content of the loop, which happens yes or yes, at least once for the do while .