the output is coming correct if i search for a element but for any other element runtime error is coming i have dry run my code but i am not able to find where the mistake is there.
please help me to solve issue.
Stair Case search
hey @mikki18, small change in while condition is required, check it here, https://ide.codingblocks.com/s/156403
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.