No output coming for the code

Please check if my logic is correct or not for the Staircase approach to find an element in a 2D array.
I am not getting any output.
The link to my code is :

hi @sanjit_15
in the read function
the j loop is wrongly written
for(int j = 0 ; j < n ; j++) u have mistakenly done i++

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.