Any one can help me out i want to display a spiral of n*n size with out using arrays?

```
out put when n=2 should be 3 2
0 1
when n=3 should be 8 7 6
1 0 5
2 3 4
when n=4 should be 15 14 13 12
04 03 02 11
05 00 01 10
06 07 08 09
```