March 28th, 2013, 12:59 PM
Im trying to
So I think the loop should look something like this. But I don't know what *** should be.
March 28th, 2013, 01:32 PM
try with counter==30
if all diagonal element are more than 7 then only counter will reach to 30.
March 28th, 2013, 02:21 PM
He want to exit the loop (read: stop creating new array) when the counter IS EQUAL to 30, which means he want to keep running the loop while counter IS NOT EQUAL to 30.
Therefore, he should try with: while(counter != 30).
March 28th, 2013, 02:54 PM
Or, since the value of counter can only increase in that loop:
Originally Posted by MrFujin
while(counter < 30)