Can anyone lease tell me the value of k? I know it starts at 0 and loops backwards but I can't figure out where it terminates. I would really appreciate someone telling me the best way to figure this out so I can solve these problems in the future
int k = 0;
for (int i = -1; i <= 3; i++)
{
k = i;
for (int j = 0; j <= i; j++)
k = k + j;
}
Thank You