using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            Console.WriteLine("Hello world!");
            int firstLargest = 0;
            int secondLargest = 0;
            int[] arr={4,3,3,4};
            for (int i=0; i<arr.Length;i++){
                if(arr[i] > firstLargest){
                    secondLargest = firstLargest;
                    firstLargest = arr[i];
                }
                else if(arr[i] >= secondLargest && arr[i]!=firstLargest)
                {
                    secondLargest = arr[i];
                }
            }
            Console.WriteLine("First Largest {0}", firstLargest);
            Console.WriteLine("Second Largest {0}", secondLargest);
            
        }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: