**************1 count


wrong answer

hello @nmaurya760 i have made changes in your code .
corrected code https://ide.codingblocks.com/s/325594
try to dry run your code and then try to dry run this you will understand where you were doing wrong.
i hope i have cleared your doubt .
Happy Learning !!