I am working in the program bellow, I aim to store data variable array
using List.
int[] data = new int[] { 65, 66, 67, 32, 100, 90 }; // I declare int[] data it contain my data that I want to work with the length change.
int[] array = new int[6 * data.Length]; // I declare a table length of 6 * the lenght of the data
List<int> list = new List<int>(); // I declared a list where I wand to Add to build array
foreach (var b in data)
{
array[0] = b / 200;
array[1] = b - array[0] / 79;
array[2] = b - array[0] - array[1] / 27;
array[3] = b - array[0] - array[1] - array[2] / 19;
array[4] = b - array[0] - array[1] - array[2] - array[3] / 21;
array[5] = b - array[0] - array[1] - array[2] - array[3] - array[4] / 3;
// list.Add(); // in this line I need to write an instruction where I can list.Add(array)
}
Console.WriteLine("", array);
Console.ReadKey();
}
I really appreciate any help.
kind regards