Home Forums C Programming program to make spiral matrix Re: Re: program to make spiral matrix

#3475
GWILouisaxwzkla
Participant

I think this does what you want it to:

heres the ouput:

enter the size of the matrix: 5

1 6 11 16 21
2 7 12 17 22
3 8 13 18 23
4 9 14 19 24
5 10 15 20 25
Press any key to continue