[Solved] Can someone explain what’s going on in this for loop?
First for-loop fills an array of length x with user entered values. Second for-loop checks for array like this [1,2,3,3,2,1]. So it checks wether the array is reversev in the second half. Though because of the return the for-loop will be canceled at first run. So if the first entry of the array equals the … Read more