in this code how many times will it repeat? for(i = 0; i < 8; i++) {forward();}

Answer :

Answer:

It will repeat 8 times. because in the statement above the variable i has to be more then 8, so until the variable i has the value of it it will repeat. So it will repeat 8 times .