I'm stuck with this task. Been trying to figure it out for 2 weeks now already and i always get stuck in the part when the spiral is going on a second lap.
I'm trying to write a program that takes amout of rows and amount of colums from user output and turns it into spiral matrix.
Enter amout of rows: 5
Enter amount of colums: 5
I've figured out a way how to print numbers in spiral order from square matrix, but haven't figured it out yet the other way around.
All the ideas are appreciated.