using System;
public class Program
{
public static void Main()
int[] a = {4,5,6,7,8};
int max = a[0];
int max2 = 0;
int i, j;
for (i = 0; i <a.Length ; i++){
if (a[i]>= max){
j = max;
max = a[i];
max2 = j;
}
Console.WriteLine("{0} is the second largest number.",max2);