+ 1

My code doesn't work. I don't understand. Please help!

It must looks like that 123 4 5 https://code.sololearn.com/cDDr8Yj8YRRf/?ref=app

12th Apr 2020, 3:10 AM
User
4 odpowiedzi
+ 1
First clarify what you do want to do? If you just want to output to be :- 123 4 5 So here is the solution :- https://code.sololearn.com/clLncEHgVfno/?ref=app
12th Apr 2020, 4:25 AM
ClassHacker
ClassHacker - avatar
+ 1
I want to do square like that 123 894 765 I don't understand why second loop don't work. It just first part of programm and later I want add next part to go from down right to left. Sorry for my English 😔
12th Apr 2020, 4:39 AM
User
+ 1
Are you trying to create spiral square(spiral matrix) ?
12th Apr 2020, 4:48 AM
ClassHacker
ClassHacker - avatar
0
Yes
12th Apr 2020, 4:49 AM
User