Answers for "do while statement programming"

1

Do..While Loop

A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time. 

Syntax : 
do {
   // Statements
}while(Boolean_expression);
Notice that the Boolean expression appears at the end of the loop, so the statements in the loop execute once before the Boolean is tested.

If the Boolean expression is true, the control jumps back up to do statement, and the statements in the loop execute again. This process repeats until the Boolean expression is false.
Posted by: Guest on August-31-2021
0

while syntax

while(booleanExpression) { 
    //block of code to be executed
}
Posted by: Guest on June-25-2021

Browse Popular Code Answers by Language