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);


LATEST TUTORIALS
APPROVED BY CLIENTS