Incidentally, when you do this
Code: [Select]
for (int z = 0; z <= 1; z++)
How many times do you expect the for loop to iterate ?
2times
is there a way to break the loop when i press the button when the loop is running? sorry im new in programming.