for(int k=0;k <= odds.GetLength(-1);k++)
The above line of code is supposed to iterate through a two dimensional array of type Double but keeps
If odds is a two-dimensional array, then its dimensions will be called 0 and 1. Trying to access dimension -1 will yield an IndexOutOfRangeException.
odds
0
1
-1
IndexOutOfRangeException