Menu

[solved] – Question 8957

Which are true about for loops?

A. You need to specify the start value and a terminating condition. For example: the loop start with $x = 3 and ends when $x is less than 10

B. They are exactly the same a while loops.
hint: google for loops vs while loops

C. On each iteration of the for loop, the indexing variable usually, $i, if always incremented by 1

D. $i++ means $i = $i + 1

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *