Home

LINQPad can't show the program results

Hi,

LINQPad does not display the program results, and there are no error messages.

double[] va = {1.0,2.0,3.0,4.0,5.0};
int i = indexOfMaxValue(va);
va[0].Dump();

int indexOfMaxValue(double [] values)
{
    double max = values[0];
    int index = 0;
    for (int i = 1; i < values.Length; i++
    {
        if (values[i]>max)
        {
            max = values[i];
            index = i;
        }
    }
    return index;

May anyone could help me guide how to fix this?

Comments

Sign In or Register to comment.