I need to write a code to print spiral pattern in c without arrays; but I'm really stuck.
input 3: output: 1 2 3 8 9 4 7 6 5 input 4: output: 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7
any suggestions?
Aucun commentaire:
Enregistrer un commentaire