Say you have the answer is 564.1 and to convert to base 10 its 5 x 6^2 + 6 x 6^1 + 4 x 6^0 + 1 x 6^-1 and then convert it to base-r.
How do you do this in C?
We're suppose to design a calculator program that takes a number, converts it to base 10, and then converts it to base-r. I have the calculator down, but how do you convert to base-r? How do you write it in C?
How do you do this in C?
We're suppose to design a calculator program that takes a number, converts it to base 10, and then converts it to base-r. I have the calculator down, but how do you convert to base-r? How do you write it in C?