string[] groups;
int groupCount;
double[] grades;
int gradeCount;
So the groups and grades are in two separate arrays and I need to combine them as one string and add them to a new array.
string[] test = new string[groupCount];
for (int i = 0; i < groupCount; i++)
{
test[i] = ("{0}: {1}", groups[i], Math.Round(grades[i],2));
Console.WriteLine("{0}", test[i]);
}
How do i do it ?