1. Put any number 2 to 10. That is how many numbers you need. 2. Enter the numbers. 3. Enter y for parentheses, n for none. 4. Enter the goal.
Fixed, original never allows parentheses even if Y is the answer. Used the if () else () block. Update: Not fixed, I picked 10 different numbers and all of the expressions used only "6". All numbers must be used. Marked this as a draft.