1. The while loop seems unnecessary in the for loop that converts the number.
2. Check the scope of the temp variable in the the for loop converting the number.
3. Put parenthesis around...