What is the difference between while loop and do while loop. I used to think both are completely same.Then I came across following piece of code:
do {
while test the condition before executing statements within the while loop.
do while test the condition after having executed statement within the loop.
source: let us C