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)
Roztwór
Aldo
experto · Tutor durante 3 años
4.5
(432 Votos)
Respuesta
The output of the program is (B) 28.Here's the step-by-step explanation:1. Initialize `count` to 0.2. The first `REPEAT` loop runs 2 times.3. Inside the first `REPEAT` loop, there are 3 `REPEAT` loops, each running 4 times.4. Inside each of these 3 `REPEAT` loops, `count` is incremented by 1 three times.5. After the first `REPEAT` loop, `count` is 3.6. The second `REPEAT` loop runs again, and the same operations occur.7. After the second `REPEAT` loop, `count` is 6.8. The final `DISPLAY` statement outputs the value of `count`, which is 6.