0

so if you put continue in your if statement, itll skip that value and keep going? example

if (x==30){ continue; } //part of a code not the whole thing

26th Aug 2016, 5:36 PM
Aquarius
Aquarius - avatar
3 Réponses
+ 2
continue and break statements should be in any loop or switch. if continue gets executed then rest of loop(statements which are after continue) will not be executed, loop will goto next iteration if break gets executed then it will break complete loop. that loop won't execute further
26th Aug 2016, 5:43 PM
Gouda Kiran
Gouda Kiran - avatar
0
ok thanks
26th Aug 2016, 5:55 PM
Aquarius
Aquarius - avatar
0
if the statement is false then it will skip the current statement and goto the next statement
26th Sep 2016, 4:01 PM
Kashish Gupta
Kashish Gupta - avatar