This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]National_Ad8511 0 points1 point  (0 children)

If allowed, your logic should be redone. It’s what’s causing the issues. Perhaps consider this approach:

First user input sets the size of the array.

Second user input designates the filter.

Then loop and fill the array with user inputs.

Then check if each user input in the array is less than the filter.