The program first asks the user for the number of elements to be stored in the array, then asks for the numbers. This is my code
static void Main
You are initializing min to 0.
min
Try following
int min = Int32.MaxValue;
Also In case you are accepting negative values as input, you should initialize max to minimum integer value.
int max = Int32.MinValue;