3
Answers

Two Dimentional Array Sorting (c#)...

Ahmed Soliman

Ahmed Soliman

16y
6.1k
1

this is my code:

public void RandomNumberGenerator(int lower, int upper)

{

Random rnd = new Random();

int[,] arrdegree = new int[21, 6];

for (int i = 1; i < 21; i++)

{

for (int j = 1; j < 6; j++)

{

arrdegree[i, j] = rnd.Next(10, 99);

Console.WriteLine("Student" + "" + i + " , Subject" + j + "= " + arrdegree[i, j]);

}

}

}

i need to sort the values of the random generator in the myarray.................please help

Answers (3)