Converting Integer to any base



Recently on a coding test , I was given a problem to write a program
that converts an integer to any given base between 2 and 16
(inclusive). I had written it in C# as this code is available to
viewers at


http://www.thinkanddone.com/prog/cs/integer2decimal.html

Hope it finds it use for someone facing the same problem

Asad
.