1. What is the numerical (think Ansii codes) value of the first character ("6")?
2. How would you convert this numerical value to its respective digit value? ("6" -> 6)?
3. How do you convert the digit value to its place value? (6 -> 600)
I won't write the code for you as you won't learn anything that way but answer the above questions, and it should help the light bulb come on. Writing your own code for your own solution is 90% of the fun of programming.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.