+ 1
For loop explanation?
4 odpowiedzi
0
i=0 while(i<10){i=i+1} //it is counting until 10, similate to "for(i=0;i<10;i++)"
0
In the for loop there are three sub statement (state1:state2:state2) statement on the left most side that is state 1 is the initialization one , centermost is the condition to be check and right most(state 3) is the upadtion.
0
loop is the repetition of statement more than one time