Okay, this isn't really a game.
I had a math problem, and i wanted to make a program where you enter 4 numbers, and the program finds what combinations can be used without exponents or grouping signs and would equal 24.
I have the adding/subtractions part working, just a few small problems with grouping, but i dont want to use if else if the whole time. I addded the mulitplication and division, just to have it break out of the loop.
Is there an algorithim i could use for this, or a certain command? Thanks.