This code is totally right in my view but still its not giving the right answer... can you find where is the mistake in my code?
Now it’s working https://ide.codingblocks.com/s/575371. There was an issue in extendedEuclid function. Also you weren’t doing ans%prod in the end.
this code is also not working… I think this is exactly the same code as mine… can you make a comment in my code wherever you are changing the code?
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.