Division by 3 using itoa()

Light Poster
17Jul2007,22:06   #1
kens's Avatar
WAP to divide a number by 3 using itoa() and without using /,% and *.

Please help me with this problem.
Go4Expert Founder
18Jul2007,09:17   #2
shabbir's Avatar
I could not understand your problem and as far as I know itoa() converts integer to character?
Light Poster
18Jul2007,13:24   #3
kens's Avatar
Can iota() be used to convert a number in base 10 to one in base 3 and then, if we could remove the last digit of the answer, that is 12 will be 110, remove last 0 ,making it 11.
Then, can we convert the result back to base 10 and display the answer?

Am I thinking in the right direction? If yes, is there an easy way to convert from base 3 back to base 10?