50 -20 0 30 40 60 12 array 1 45 20 10 20 30 50 11 array 2 50 -20 0 30 40 60 12 Firstelement Lastelement 45 20 10 20 30 50 11 Firstelement Lastelement 50 = 45 / 12 = 11 / Lenth 7 Lenth 7 First or the last elements of two arrays are not same False Testing if the first or the last elements of two arrays of integers are same w3resource.com