Answer to Question #259945 in C++ for Levi

Question #259945

If you wanted your loop’s control variable to start at 100 and terminate when it becomes 3, which syntax should be used?

Select one:

a.

for(int i = 100; i < 3; i++) {}

b.

for(int i = 0; i < 100; i+3) {}

c.

for(int i = 3; i > 100; i--) {}

d.

for(int i = 100; i >= 3; i--) { }


1
Expert's answer
2021-11-01T18:57:23-0400

d.

for(int i = 100; i >= 3; i--) { }


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
APPROVED BY CLIENTS