How do you input a binary number into a function? Or can we input it as a string? "00110101" and then use the string methods? How should i go about this?
Did that work out? bcoz i also tried that out but my problem was that u need to know how many times you need to use the mod and div operator during design time, which i found was a bit tricky, thats why i ended up using C_Strings.
--------------------------------------------------------------------
In a long journey, even a matchstick is heavy...
<No, not really. The base case is when Mod 2 = 1 AND Div 2 = 0. Then you know you are left with 1.> --- Scrap that nonsense. I was on the typing before I was thinking.