tharakaweb.com
Pad numbers with leading and ending zeros
In a recent project, I got a list of integers something similar to following. 1 12 123 1234 12345 …. 123456789 and, I was asked to add zeros to the left or right of the list and make it as be…