Then what you said would be best, I tried reading it in as a formatted integer (%2d) but the EOF flag is vital in this case
Edit:
Unless you're guaranteed a certain number of numbers, then the problem becomes much easier
edit2:
examples 2 and 3 seem to kill that possibility
Last edited by ಠ_ಠ; 07-06-2009 at 04:39 PM.
╔╗╔══╦╗
║║║╔╗║║
║╚╣╚╝║╚╗
╚═╩══╩═╝
Ok. Why dont you get it converted to C code. Just input a long unsigned integer from the user using scanf. Then make a while loop and do what you're doing in the colored line(taking the last two digits using % operator and obtaining the remianing number using / operator). For printing the ASCII code you dont have to make a separate function just use %c format specifier in your printf statement. And also do include the condition when the number becomes zero.
HOPE YOU UNDERSTAND.......
By associating with wise people you will become wise yourself
It's fine to celebrate success but it is more important to heed the lessons of failure
We've got to put a lot of money into changing behavior
PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
IDE- Microsoft Visual Studio 2008 Express Edition
HOPE YOU UNDERSTAND.......
By associating with wise people you will become wise yourself
It's fine to celebrate success but it is more important to heed the lessons of failure
We've got to put a lot of money into changing behavior
PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
IDE- Microsoft Visual Studio 2008 Express Edition