Which Base is it Anyway
Jump to navigation
Jump to search
This problem literally asks you to read input and convert it to base 8 and base 16.
Java has methods to do this. (Integer.parseInt()). C++ may as well. If not, you're left to do it on your own, which involves:
- % by new base to get least significant digit
- subtract by modded value in step 1
- divide by new base.
- repeat