How to find the Biggest and smallest in Int[] Array using c#
- by karthik
If the array is as follows,
int[] array = new int[] { 7, 4, 1, 8 };
I want to find the Biggest, smallest, second smallest, second biggest
If the array is as follows,
int[] array = new int[] { 7, 4, 1 };
I want to find the Biggest, smallest, second smallest
If the array is as follows,
int[] array = new int[] { 7, 4 };
I want to find the Biggest, smallest
How can i achieve this programmaticly.