My lecturer gives me an assignment to input a number, then make the output like this example:
input: 5
12345
12341
52152
43453
32154
It's 12345 and then repeats again vertically on the right side and then repeat again horizontally on the bottom to the left and repeat again upside forming like a square until the center, using for or while. I've been thinking about this for a week and have no idea how to make this.
Thank you.