Prime factorization

what is wrong in my code

hello @nishiumrao
https://ide.codingblocks.com/s/324132
i have corrected your code .try to understand now.
i hope i have cleared your doubt .
Happy Learning !!

but i have written the same code as pratik bhaiya
then why is it giving error.

@nishiumrao https://ide.codingblocks.com/s/324276 check this i have corrected that also and i have commented your mistakes .
i hope i have cleared your doubt .
Happy learning !1

hello @nishiumrao as you are not replying to this post i hope that your doubt is cleared now you can mark this doubt as resolved .
on off the chance if you still have doubt you can reopen it and ask your doubt again.
Happy Learning !!