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--) { }
d.
for(int i = 100; i >= 3; i--) { }
Comments
Leave a comment