# Answer to Question #11450 in C# for Ken

Question #11450

I need to develop a program in C# of users inputting 10 numbers for an array and then having the lowest and highest picked out of the ten.

ANy help here is greatly appreciated.

ANy help here is greatly appreciated.

Expert's answer

int[] arr = new int[10];

for (int i = 0; i < arr.Length;

i++)

{

arr[i] =

int.Parse(Console.ReadLine());

}

int min =

arr[0];

int max = arr[0];

for (int i = 1; i <

arr.Length; i++)

{

if (arr[i] >

max)

max = arr[i];

if (arr[i] <

min)

min = arr[i];

}

for (int i = 0; i < arr.Length;

i++)

{

arr[i] =

int.Parse(Console.ReadLine());

}

int min =

arr[0];

int max = arr[0];

for (int i = 1; i <

arr.Length; i++)

{

if (arr[i] >

max)

max = arr[i];

if (arr[i] <

min)

min = arr[i];

}

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment