I seem to have gotten myself into an infinite while-loop:
while(number != 0){
if(number % 2= != 0{
numberState[1]++;
}
else numberState[0]++;
}
The program should be able to count the amout of even and odd numbers using arrays. when I input 0 it should stop but for some reason it doesnt eventhough the while-loop states that the input has to be different than 0. Can anyone help me with this?