int[] array = { 12, 56, 89, 65, 61, 36, 45, 23 }; int max = array.Max(); int min = array.Min(); int diff = max - min;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)