Thread: arrays??
View Single Post
Old Mar 23rd, 2008, 8:59 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Re: arrays??

You'll need what's called a nested loop. You have one loop that counts down from 12 to 1, and inside that loop have another loop that counts down from the value of the iteration you're in to 1. The logic goes something like this:
loop from i = 12 to 1
    loop from j = i to 1
        print j
    end loop
    print newline
end loop
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote