I need to find out a way to figure out how to figure every way to get to 100

like

1+23-45+67-8+9 (thats not equal = 100)

but stuff like that.. in order.. allowing any amount of numbers.. 1-9 in that order

so like

1+2+3

12+3

1+23

123+

etc.. for both + and -...

i have no idea where to start from

to those who think this is a homework problem: it was a problem we had in class today, i spent along time figuring a correct answer and I just found it by trial and error and it took a long time. teacher said there was 12 different answers and im just wondering as to what they are

Nice one though. Very messy to do.

Generally its some sort of loop like

for i := 1 to 9 do

for j := 2 to 8 do

for K := 3 to 7 do

{ do something here and test the result. If it's a 100 you've found an answer }

The for loops here have no relevance, they're just for show.