At time 15:54, why are we doing " j= j+1 " in else condition. why are not doing in the for loop ?
I have a syntax doubt
both are correct
you can do it in loop also
Sir, but we are doing ( j = j+1 ) in the the else condition. if our ’ if condition ’ will be true, then there will be no increment in j.
No
j=j+1 is not in else
it is outside the if condition
check again