+ 2

does Break work with if statement?

11th Sep 2016, 12:45 PM
padmesh
padmesh - avatar
4 odpowiedzi
+ 1
It breaks out of the enclosing loop Check this example http://code.sololearn.com/cxcoa29sC8ps
11th Sep 2016, 12:53 PM
Daniel Kaas
Daniel Kaas - avatar
+ 1
No. break works for loops only.
12th Sep 2016, 6:26 AM
MAZHAR IMAM KHAN
MAZHAR IMAM KHAN - avatar
0
yes
13th Sep 2016, 1:38 PM
Twinkle Baisane
Twinkle Baisane - avatar
- 4
it will break out from the if condition...!!
11th Sep 2016, 2:29 PM
abhishek shinde
abhishek shinde - avatar