Ok, what I want to do is to have a matrix 5x5, example in the picture below (ignore the text, consider just values), basically horizontal axys (a) is an array from 1 to 5 and vertical (b) the same. all the cells are results of a multiplication a*b. After that I will have a range and color cells based on the range. But I don't know from where to start. I can define two arrays for a and b but how do I view the results of a*b? I think I can define the range and apply the color on the final result


Sachin SinghRank #66 · 26.2K reputationPosted May 8, 2021, 2:25 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 7, 2021, 9:34 AM EDT
var result = from e in FirstArray from d in secondArray select new { e, d }; BTW, matrix is created like thisvar numbers = new int[5,5] { { 1, 2, 3, 4, 5 }, { 2, 3, 4, 5, 6 }, { 1, 2, 3, 4, 5 }, { 2, 3, 4, 5, 6 }, { 1, 2, 3, 4, 5 }}; private void Matrix() { for (int i = 0; i { for (int j = 0; j { list_Matrix.Add(numbers[i,j].To String()); } } }Marius VasileRank #785 · 2.9K reputationPosted May 7, 2021, 10:36 AM EDT
Marius VasileRank #785 · 2.9K reputationPosted May 7, 2021, 1:53 PM EDT
Marius VasileRank #785 · 2.9K reputationPosted May 8, 2021, 4:13 AM EDT