asked 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.

asked
User Elrohir
by
8.3k 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.

answered
User Victor Turrisi
by
7.8k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.