c# im getting an error
<pre><code>double dval = 1;

for (int i = 0; i &lt; Cols; i++)
{
    k = 0;
    dval = 1;
    for (int j = Cols - 1; j &gt;= 0; j--)
    {
        colIndex = (i + j) % 3;
        val *= dval[colIndex, k];
        k++;
    }
    det -= dval;
}
</code></pre>

<p>im getting an error </p>

<blockquote>
  <p>Cannot apply indexing with [] to an expression of type 'double' for dval </p>
</blockquote>

<p>help its urgent</p>
