The while statement will execute a section of code if and as long as a expression is true. If the expression is true then the code section will be executed. Following the code has executed the expression will over be evaluated and the loop will continue till the expression is seen to be false. The do…while statement will execute a section of code at least once – it later will repeat the loop as continued as a condition is true.
Mraj
Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts. If you have any questions let me drop an email with the article name to the following email id: [email protected]