06-12-2012 04:16 AM
Hello everyone
I have 2D array as below , i need to reverse the array by the group of 3 rows
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
5 5 5 5 5
6 6 6 6 6
7 7 7 7 7
8 8 8 8 8
9 9 9 9 9
So the result shoud be
7 7 7 7 7
8 8 8 8 8
9 9 9 9 9
4 4 4 4 4
5 5 5 5 5
6 6 6 6 6
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
how can i do? please suggest me thank you!!!
06-12-2012 04:41 AM - edited 06-12-2012 04:42 AM
06-12-2012 04:53 AM
Thanks for your help GerdW
How can i make the result to 2D array ?
06-12-2012 04:55 AM
06-12-2012 05:03 AM
This is one of the approach it will convert any number of elements in the array.
good luck
06-12-2012 05:09 AM
It works very well
Thanks a lot !!!!