hey I want to type if statement with the way 2 but I need to put there a continue and it not working with any ideas ? way 1 to type if
if ( x+2 < 0) {
y=x+2;
}
else {
y=-(x+2);
}
way 2 to type if
y=(x+2 < 0) ? x+2 : -(x+2)
my question how to type continue in the second way something like this :
(x==1) ? continue : x+1 ;
but this not working for me any help !!
Aucun commentaire:
Enregistrer un commentaire