50 -20 0 30 40 60 10 Firstelement Lastelement Lenth 7 50 -20 0 30 40 60 10 / 50 = 10 First and the last element of the array are not same False Testing if the first and the last element of an array of integers are same w3resource.com