1//Executes a statement repeatedly, until the value of condition becomes false.
2//The test takes place before each iteration
3while(condition) {
4 statement
5}
1// Executes a statement repeatedly until the value of the condition expression
2//becomes false. The test takes place after each iteration.
3do {
4 //statement
5} while(condition);