Saturday, January 7, 2012

I need help with this code......?

In char2num(), "ch" is never a letter, so none of those conditionals are ever true. Despite that, the last line, ans = '9', will execute, producing the final result of "999999999999."

No comments:

Post a Comment