Wrong answer///////////////////

please check my code

hello @Aparna
you are not updating diff. inside if statement . it should be

image

reply some1 pleaseeeeeeeeeeeeeeeeeeee

i have already replied

u need to update ur diff inside if statement(check highlighted part that i added)

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.