-
printing numbers in spiral shape
I need an algorithm for some program. I'll take some number (say 'n'), then i should print the numbers in spiral shape starting from square(n). Can any one pls help me..Ex: if n=3, it should print like9 8 72 1 63 4 5Thanks in advance
-