I\'m currently building a program and I\'m trying to make my code a bit shorter. It\'s just a for-loop repeating itself 15 times. Can someone show me how they would do it and ex
Out of curiosity, have you tried this,
for (i=0; i<1296; i++)
{
for (k =0; k< 15; k++)
{
for (j=0; j<1296; j++)
{
counter = 0;
s[0]=0;
s[4]=k;
if (remain[j][0]!=-1)
{
feed(poss[i], remain[j], f);
if (f[0]==s[0] && f[4]==s[4])
{
counter++;
}
}
table[i][0]=counter;
}
}
}
Please, ignore the indentation. My point is nesting the loop in another one. Any reason that it should fail?