My code is not returning the last element of the array,please help!


#1

My code is not returning the last element of the array,please help !


#2

check your nested loop conditions carefully