Is mirror inverse wrong out

Code - https://ide.codingblocks.com/s/36086
Question - https://hack.codingblocks.com/contests/c/509/184
Working in sublime and cb ide but failing while submitting it.

Instead of checking each digit in the loop, first make and save the inverse of number in some variable.
Then compare it with the original number and print true or false. You can figure out your mistake in that.

https://ide.codingblocks.com/s/37104

Made changes in your code and now it works well. I hope you understand the mistake.

1 Like

Thnx bhaiya, Yes i understood that mistake.