Which loop is guaranteed to execute at least one time
Answers
Answered by
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
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
Hindi,
5 months ago
Math,
5 months ago
English,
11 months ago
Political Science,
11 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago