You can use PadLeft to format like that.
int intVariable = 0;
intVariable++;
string output = intVariable.ToString().PadLeft(6, '0');
A new string that is equivalent to this instance, but right-aligned
and padded on the left with as many paddingChar characters as needed
to create a length of totalWidth. However, if totalWidth is less than
the length of this instance, the method returns a reference to the
existing instance. If totalWidth is equal to the length of this
instance, the method returns a new string that is identical to this
instance, MSDN.
To generate in loop, you can use loop variable.
for(int i=0; i < 100; i++)
output = i.ToString().PadLeft(6, '0');