hi,
am new to c# and am getting index out of range error please help me my code
int index = 1;
int[] numArray = new int[num2];
for (int i = num1; i <= num2; i++)
{
numArray[index] = i;
Console.WriteLine(" index: {0} assignment: {1}", index, i);
index++;
Console.WriteLine("index: {0}", index);
}
please help me
Biswa Pujarini MohapatraPosted Feb 18, 2014, 6:42 AM
can you paste your whole code if you are still not getting solution
Lakshmanan Sethu SankaranarayanPosted Feb 18, 2014, 6:49 AM
Rashmi devPosted Feb 18, 2014, 6:49 AM