posted 14 years ago
There is a difference in the VALUE, and how it get's DISPLAYED. the number '2' has the same value regardless of me writing it as "2", "two", "II", or any other way.
So you really have two requirements.
1) You need to increment the value of '1' to '2'
2) You need to display these values with some leading zeros.
The best way to approach this is to figure out how to do each individually, and only THEN figure out how to combine those steps into a single program.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors