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 MohapatraRank #465 · 5.4K reputationPosted Feb 18, 2014, 1:42 AM EST
can you paste your whole code if you are still not getting solution
Rashmi dev10 reputationPosted Feb 18, 2014, 1:49 AM EST
Lakshmanan Sethu SankaranarayanRank #124 · 17.7K reputationPosted Feb 18, 2014, 1:49 AM EST