Question #319261

Rewrite the following for-loop as a post-test do-loop. (5)

for x = 20 to -20 step -3

display "x = ", x

next x


Expert's answer

x = 20;

do {

display "x =" , x

x -= 3;

} while (x>=-20);


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS