Regarding this question


can you please check because I am getting no output

you have written condition for while loop as s>=e which will be false always as start is less than end and hence your code inside while loop is never getting executed, you should give this condition as while(s<=e).

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.