Use of three while

can we take or instead of and in the condition for first while loop ?

hello @Saumya123456789
yeah u can take or instead of and.

for that.
a) you need to add two more if statements inside while loop.
if(index of first array has exceeds its range)
{

}
if(index of second array has exceeds its range)
{

}

b) remove the other two loops.

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.