Given a binary number from 0 to 111111 convert it to trinary. (Base 3). Then print the result.
No using a list of conversions.
You must use a string as the number
No compressing the input string As I will be testing the code with several different numbers I can't use compressed strings
By trinary I mean counting in base 3. So 0,1,2,10,11,12,20... ect
Leading zeros will be present 001101
Most important number is on the left.
String input = "110111" String a = code(input); print(a);
This is code golf!
Do it correctly and in the smallest size.