+ 1

For loop explanation?

9th Nov 2016, 4:15 AM
Ahmad Ali Saim
Ahmad Ali Saim - avatar
4 odpowiedzi
0
i=0 while(i<10){i=i+1} //it is counting until 10, similate to "for(i=0;i<10;i++)"
9th Nov 2016, 4:34 AM
Ernani Brandão
Ernani Brandão - avatar
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.
12th Nov 2016, 1:53 PM
ROHAN JOSHI
ROHAN JOSHI - avatar
0
loop is the repetition of statement more than one time
22nd Dec 2016, 4:35 PM
Khan1 Khan1
Khan1 Khan1 - avatar