
-----------------------------------
octopi
Sun Mar 21, 2004 12:57 pm

I'm lazy, do this for me, seriously.
-----------------------------------
Okay, I'm tired and lazy, and its simple, and I can't figure this out.

I have 3 options, and I have 3 items.
Each Item can have one of the 3 options, only one.
so I've got this matrix thing.

Can someone make me a program that will show like the three items, and each possible option


1 a
2 a
3 a

1 a
2 a
3 b

1 a
2 a
3 c
..


I'm pretty sure there should be 27 different combinations.
But I can't for the life of my figure out how to make a program that displays them all. (I haven't slept more then 8 hours total in the last 4 days :))

-----------------------------------
Tony
Sun Mar 21, 2004 2:11 pm


-----------------------------------
:lol: octopi, get some sleep :lol: 

for a : ord ("a") .. ord ("c")
    for b : ord ("a") .. ord ("c")
        for c : ord ("a") .. ord ("c")
            put "1:", chr (a)
            put "2:", chr (b)
            put "3:", chr (c)
            put ""
        end for
    end for
end for

