Click Cat to enter denary (decimal) number. Please leave a comment with the numbers that you find not working. In theory this program should get the answer right every time. Feel free to check coding.
Inspired by a challenge set by a friend based on my IT lessons.