• + 0 comments

    for loop should be this

    for (int a=i;a<=j; a++)

    should be less than or equal to