Computer Science, asked by pala7077, 1 month ago

How many times will the following loop be executed?
I = 5
While I <= 20
TextWindow.Write( A + " ")
I = I + 6
EndWhile

Answers

Answered by byritesh7483
6

this loop executed for 3 times

here,

first, i=5 which is true.

for second,

i=11 which is true

for third,

i=17 which is true.

for fouth,

i=23 which is false

so loop terminates

so, the loop execute for 3 times only

Similar questions