In this question i am able to traverse through outer part but cannot enter proper condition for inner loop
Spiral print of numbers
hey, you can put all of the for loops in a single while loop and run the while loop till all the elements are printed. you can maintain a count variable for that. After printing each row or column, you need to change the values of your variables such that the condtions for a smaller row/column are met. You have hard coded all of the for loops, try to think in the terms of variables like row_start, row_end and col_start, col_end, and try to figure out how the values of these variables will change as we are done with one row or column
Please mark your doubt as resolved if you are satisfied