In the following code, does the break statement break out of the if statement only or out of the for loop too?
break
if
for
I need it to b
Break never refers to if/else statements. It only refers to loops (if/while) and switch statements.