Skip to content
Permalink
1ecdae3604
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
5 lines (3 sloc) 374 Bytes

A while loop will only begin to execute if the conditional statement in the while statement is true.

A do while loop will always execute its contents at least once, regardless of whether the conditional statement is true.

In other words, a while loop checks the conditional statement at the beginning of the loop, while a do while loop will check the statement at the end.