If I am correct in understanding that you want to find ANY sequence that sums to zero (i.e it can be elements 3 to 11, for example), you will need to run one data entry loop to read ALL user input first and then, after you read ALL user input, run TWO loops (inner) to check every sequence starting with each of the elements...
No comments:
Post a Comment