for loops in C
I need help stoping my for loops after they reach a certain point because they print all the possible answers and not just the first one.
the structure is four consecutive for loops all running separate counters until they satisfy an if statement at the end of the last for loop. Since there are many solutions, it prints all of them but I only want the first one to print. I tried a break statement but it did not help.
Post some code so we can see what your doing.