+ 1

Print 1 to 10 numbers but the number 3 should be missing.

13th Sep 2018, 1:38 PM
Manju Gurung
Manju Gurung - avatar
3 odpowiedzi
13th Sep 2018, 8:45 PM
Rishabh Mehta
+ 12
for (int i = 1; i <= 10; i++) { if (i != 3) { System.out.println(i); } }
13th Sep 2018, 2:16 PM
Eduardo Petry
Eduardo Petry - avatar
+ 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
13th Sep 2018, 2:25 PM
Roel
Roel - avatar