Given a number at runtime How to print numbers in the given format?
For example when a number 1000 is given as input then I want to print a series as follows:

0000, 0001, 0002....0025.....0500.....1000

How to do this?