Don't bother.
6 minutes+ of ancient turboc running in dos box, along with void main and other train wrecks.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Yeah and one day the number is 1000 or somesuch and the "reverse" of that is printed as one.
Use a string representation and reverse the string instead.