Identify the type of loop structure described in the following statement: 'a loop structure with a condition, it will only happen if the condition ...
Identify the type of loop structure described in the following statement: 'a loop structure with a condition, it will only happen if the condition is satisfied, then it repeats until the condition is met. The do-while loop looks a lot like the while loop, but its condition is at the end and it analyzes what is inside the code, that is, the while only enters if the condition is accepted, while the do-while only stops the repetition if the condition is confirmed.'
for loop while loop do-while loop if-else statement
A estrutura de loop descrita na declaração é a do-while loop. Nessa estrutura, o código é executado pelo menos uma vez, e depois a condição é verificada. Se a condição for verdadeira, o código é repetido até que a condição seja falsa.
0
0
Faça como milhares de estudantes: teste grátis o Passei Direto