so i have this 5 lanterns and i want to lit up 3 of them but like in order, like 5-4-2, but when i try to write in code it lit up at the same time


1 2 3 4 5 | for ( int i= 0 ; i<= 1000 ; i++){ if (i== 250 )lightlantern1; if (i== 500 )lightlantern2; } |