Answer to Question #319261 in C++ for karabo

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


1
Expert's answer
2022-03-27T17:53:21-0400

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog