Increment in value of I

as you said if we use breaks within a loop so,it ends the loop What I wanna ask is that if we, in this case, break the loop will there be an increment in value of I as well because in previous video we saw that after break printing of 4 gets skipped but its value is updated to 5.
because the break is in different indentation as compared to update command

@rastogi.g1998 hey gaurav rastogi can you please share some example and code which you’re talking about so that we can discuss

1 Like