0
can we use break statement in if conditions??
10 Respuestas
+ 7
you can only use it for loop. if statement automatically breaks when the action is complete. but you can use it when you have an if statement inside a loop to break put of the loop
+ 1
yes also switch
0
"for" loop will use it to break running number
0
awesome
0
break statement use in switch case n if condition is automatically break statement
0
Just to add, you can use a return; statement instead if you want to break out of a series of if statements
0
no u can't
0
you can only use the break statement in if conditions when ur if conditions are used inside a loop.
- 3
no you can't
- 3
not, break is use on swich broo