well I already completed this question just a doubt if I do question in this way without any return value and printing the output inside the function
why the else part that is outside of while loop is not working ??
even after flag = 1
well I already completed this question just a doubt if I do question in this way without any return value and printing the output inside the function
why the else part that is outside of while loop is not working ??
even after flag = 1
hello @dasvishal60
check now->
u need to use break inside else part of while loop to prevent inifinite loop.
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.