Output is not correct

sir i had tried to print elements of 2d array using spiral print method in anticlockwise direction and output is not coming correct.see this code https://ide.codingblocks.com/s/121125
and tell why output is not coming correct

logic absolutely fine
just initialize bottom to array.length-1