You can start with something like this, which finds the largest element.
Just keep track of two elements, rather than just one.
https://stackoverflow.com/questions/37789475/fetch-the-maximum-value-from-an-array
Write a VB.NET program code to find second largest element in an array.
1 answer