what are the difference between while and do while loop?
16 Answers. The do while loop executes the content of the loop once before checking the condition of the while. Whereas a while loop will check the condition first before executing the content.