public static void Main()
int[] arrNumbers = new int[5] { 4, 1, 2, 5, 3};
int SmallestPosition = 0;
for (int i = 0; i <= arrNumbers.Length - 1; i++)
arrNumbers[i] = SmallestValue;
for (int j = i+1; j <= arrNumbers.Length - 1; j++)
if (arrNumbers[j] < SmallestValue)
SmallestValue = arrNumbers[j];
arrNumbers(SmallestPosition = arrNumbers[i]);
arrNumbers[i] = SmallestValue;
for (int i = 0; i <= arrNumbers.Length - 1; i++)