Computer Science, asked by yanalotia6432, 11 months ago

Which loop is guaranteed to execute at least one time

Answers

Answered by avoz
1

Answer:

The do while loop is guaranteed to be executed at least once

Explanation:

Syntax:

do

{

statement 1 ;

.

.

.

statement n ;

}

while( condition ) ;

Answered by bandameedipravalika0
0

Answer:

Explanation:

The condition is not assessed until the end of the loop in a do while loop. As a result, a do while loop is guaranteed to run at least once. Before starting the programme, a for-loop checks that the condition is true. The statements in the body are executed first, then the condition is verified in do while. If the condition is true, the statements in the do while body are executed once more.

#SPJ2

Similar questions