Pagina de inicio
/
Tecnología
/
What is the ourpur or me programs (A) 32 (B) 28 (C) 24 D 20 count arrow Theta REPEAT 2 TIMES Insimes f growita REPEAT 3 TIMES REPEAT 4 TIMES f count - count +1 count - count +1 count - count +1 DISPLAY (count)

Problemas

What is the ourpur or me programs
(A) 32
(B) 28
(C) 24
D 20
count arrow Theta 
REPEAT 2 TIMES
Insimes
f
growita
REPEAT 3 TIMES
REPEAT 4 TIMES
f
count - count +1
count - count +1
count - count +1
DISPLAY (count)

What is the ourpur or me programs (A) 32 (B) 28 (C) 24 D 20 count arrow Theta REPEAT 2 TIMES Insimes f growita REPEAT 3 TIMES REPEAT 4 TIMES f count - count +1 count - count +1 count - count +1 DISPLAY (count)

Solución

avatar
Aldoexperto · Tutor durante 3 años
expert verifiedVerificación de expertos
4.5 (432 votos)

Responder

The output of the program is (B) 28.<br /><br />Here's the step-by-step explanation:<br /><br />1. Initialize `count` to 0.<br />2. The first `REPEAT` loop runs 2 times.<br />3. Inside the first `REPEAT` loop, there are 3 `REPEAT` loops, each running 4 times.<br />4. Inside each of these 3 `REPEAT` loops, `count` is incremented by 1 three times.<br />5. After the first `REPEAT` loop, `count` is 3.<br />6. The second `REPEAT` loop runs again, and the same operations occur.<br />7. After the second `REPEAT` loop, `count` is 6.<br />8. The final `DISPLAY` statement outputs the value of `count`, which is 6.
Haz clic para calificar: