Arithmetic Problem Solve

Oct 19, 2015 at 7:52pm
Suppose we have digits 1 2 3 4 5 6 7 8 9 and arithmetic operators +, -, and *.

Write a program that finds a formula that evaluates to 100 by inserting operators between the sequence of digits.

The following is a sample output:

12-3+4+5*6-7+8-9 = 100

Can anyone Solve this?
Oct 20, 2015 at 5:02am
Double post. And I gave you the hints: http://www.cplusplus.com/forum/general/176499/
Topic archived. No new replies allowed.