Challenge for Arrays
Challenge
We need to get the second-to-last number in an array. In one line of code, declare an int
variable n
and set its value to equal the second-to-last number in the array numbers
.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.