|
-
February 16th, 2012, 10:53 AM
#1
Writing a complex loop
hi,
there's an array of integers with a known length (about 10 - 20 elements) and some initiated values (between 0 to 20). i want to loop through its values and modify it one by one.
as a sample, suppose that this array has 4 elements and each element is set to number 3. i would like to get something like this:
3 3 3 3
3 3 3 2
3 3 3 1
3 3 3 0
3 3 2 3
3 3 2 2
.
.
.
3 1 0 3
3 1 0 2
3 1 0 1
3 1 0 0
3 0 3 3
3 0 3 2
.
.
.
0 0 0 3
0 0 0 2
0 0 0 1
0 0 0 0
thanks for your help,
Sean
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|