one testcase failing…
https://ide.codingblocks.com/s/118989.
Please check my code and say where iam doing wrong
Spiral print anticlockwise
Change line no 13 to : while(strtrow<=endrow)
can you tell me the case its failing and explain why
@dbhavanishankar89 In case of the odd number of rows, the middle row will not get printed with while(strtrow<endrow). If you edit your code to while(strtrow<=endrow), as suggested by Yukti, the program flow will reach the middle row and it will also get printed.