PPRuNe Forums - View Single Post - C Code Anyone?
Thread: C Code Anyone?
View Single Post
Old 17th March 2008 | 22:05
  #1 (permalink)  
planecrazy.eu
 
Joined: Jun 2006
Posts: 526
Likes: 0
From: BRISTOL!
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
planecrazy.eu is offline  
Reply