Write your question here.
I tried to make the reversed number work.
Would someone please help me?
Thank you.
Last edited on
reverse() doesn't do what you think it does. It works on containers, vector for instance.
http://www.cplusplus.com/reference/algorithm/reverse/
You need to create your own function to reverse the digits.
Last edited on