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