Say I have 12 in base 3 and I want to convert it to base 10, so its 1 x 3^1 + 2 x 3^0 = 5 in base 10.
How would you write this in C language and make it work for any number you enter and an infinite amount of digits?
Look at the code I attached, I need to convert the operands into a different base before the arithmetic operation.
How would you write this in C language and make it work for any number you enter and an infinite amount of digits?
Look at the code I attached, I need to convert the operands into a different base before the arithmetic operation.