Another one - no laughing at the following
:
Earth has made contact with a number of extraterrestrial civilisations. Space tourism is flourishing, but many of the civilisations work with number systems that are different from our commonly used base 10, base 2, base 8 or even base 16! This understandably causes problems when dealing in all things monetary. You work for one of the space tour companies and are often required to work with these number systems. So you decide to write a base n converter, that will convert your cost quotes from base 10 to any of the bases that the civilisations use.
Input:
Two command line arguments that will be passed in to your program.
i.e. "base_conv m n"
where 0 < m < 4294967295 is the number that you want to convert
and 2 <= n <= 36 is the base to convert to.
Output:
Input number represented in the base specified. You can use A-Z to represent numbers greater than 9.
Example:
./a.out 42 8
52
./a.out 42 16
2A
./a.out 4294967291 36
1Z141YZ