May 16th, 2011, 05:23 PM
need help with building a function
I have a task that I cannot solve, maybe you guys can help me out .
To explain it I'll start with an example.
These equations are false, but if you add plusses between the digits you can make them be true, like this:
You need to build a function that gets 2 numbers (the left side and the right side of the equation), puts the plusses in right places between the digits of the left number, and then returns the equation in it's true form.
It is important to notice that there can be a random number of plusses.
That's it, have any idea?
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!