98.5k views
3 votes
The ____ statement executes a statement or statements once, then repeats the execution as long as a given conditional expression evaluates to true.

User Elrohir
by
5.1k points

1 Answer

3 votes

The do while statement executes a statement or statements once, then repeats the execution as long as a given conditional expression evaluates to true.

Step-by-step explanation:

The do while statement is a simple looping statement. Looping is defined as the sequence of instructions that is repeated continuously until satisfying certain condition. The do while statement executes the conditions once and then repeats the execution until the given condition becomes true.

Do-while loop is also considered as the exit-controlled loop, as it executes the code first and then checks the condition. The do while statement is used where the condition should be executed at least once.

User Victor Turrisi
by
4.2k points