source base = 2 value = 1001 (9 in base 10) target base = 10 new representation = 9
source base = 16 value = 1FA (4346 in base 10) target base = 8 new representation = 10372E
Where is your code that is not working? Please be sure to use the [CODE] button!