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 {
In WHILE first check the condition and then execute the program In DO-WHILE loop first execute the program at least one time then check the condition