C Code Anyone?
Hey...
Ages ago i asked for some help on some c code on here, and got a good response, well i got the answer. I now find my self stuck.
I am trying to make some code, using loops, that can figure out all possibilities for a value of numbers.
IE if i enter 5, then there is 1..2, 1..3, 1..4, 1..5, 2..3, 2..4, 2..5, 3..4, 3..5, 4..5,
I then need to read this info in to some sort of array, however, i cant figure the above. i can get them, but i end up with 1..1, 2..2, 3..3, etc.
Using loop with nested loop.
thanks