In this pseudocode example, I’ll show you How to find the second largest number in an array.array arr = [10,52,64,51,23] #sample arrayn = array_length(arr) largest = arr[0]secondLargest = arr[0] for i=0 to i<n-1 step 1 then if arr[i] > largest then secondLargest = largest largest = arr[i] end if if arr[i] > secondLargest and arr[i] < largest then secondLargest = arr[i] end if end for print secondLargest