0
Alguém pode me ajudar com o erro "Index was outside the bounds of the array"
2 Answers
+ 3
Try running the loop from 0 to n-1 instead of n.
Thus, the loop looks like :
for(int i=0;i<n;i++)
{ }
Secondly, remove the semicolon after the loop to get the code below it to run.
+ 1
okay, thanks