DIGIT-ARC read-only archive · snapshot: July 23, 2026

Any one help me to solve it.

3 posts · originally from https://geek.digit.in/community/threads/any-one-help-me-to-solve-it.79340/

M
manubatham20 Original post #1
Jan 30, 2008 at 3:21 PM
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9

Can any one give me such a program to generate this output??? I wanna this wihthout using of arrays. Very truely, a typical task for me.:twisted: (1,16,15,14,13 in first column, 2,17,24,23,12 in second column, 3,18,25,22,11 in third column, 4,19,20,21,10 in fourth column, 5,6,7,8,9 in fifth column.)
QwertyManiac
Jan 30, 2008 at 11:12 PM
Have to try to do it without using arrays, but the pattern there is simple, its an inward spiral of consecutive numbers, aka, a 5x5 inward spiral matrix.
M
Jan 31, 2008 at 8:11 AM
How, i can't because you are not allowed to use any graphical functions in it. So how can i go back to these locations. (i.e. without using goto or any other function like this).