using System;
public class Program
{
public static void Main()
int[] numArray = {3, 1, 2, 4};
Array.Sort(numArray);
// Print values
foreach (var value in numArray)
Console.WriteLine(value);
}