How do I fix this code to fill an Array x with doubles from 1.0 to 15.0?
int temp = 15;
string[] titles = new string[] { "Alpha", "Beta", "Gamma", "Delta" };
List<double[]> x = new List<double[]>();
for (int i = 0; i < titles.Length; i++)
{
for (int j = 0; j < temp; j++)
{
x.Add[i][j]((double) j);
}
}
If the answer to my question above is “yes” then here is an answer: