+ 1
Print 1 to 10 numbers but the number 3 should be missing.
3 odpowiedzi
+ 2
check on this link
https://code.sololearn.com/cE4i6IADesTX/?ref=app
+ 12
for (int i = 1; i <= 10; i++) {
if (i != 3) {
System.out.println(i);
}
}
+ 3
for(i=0; i<=10; i++)
{
if(i==3) continue
document.write(i);
}
or the one-liner
for(i=0; i<=10; i++) if(i!=3) document.write(i)
~JavaScript