Is there any way to insert a leading zero for integers that are less than or equal to 9?
I am hoping to create a "for" loop that increments integer variable "i", however it needs to increment in this way:
00
01
02
03
04
05
06
07
08
09
10
...
99
The reason for this is that I will be using each value of "i" to create a filename each time the loop is entered. For example, if i=08, I will need to use that to specify a filename (such as "SectionD08").
Any ideas?
I am hoping to create a "for" loop that increments integer variable "i", however it needs to increment in this way:
00
01
02
03
04
05
06
07
08
09
10
...
99
The reason for this is that I will be using each value of "i" to create a filename each time the loop is entered. For example, if i=08, I will need to use that to specify a filename (such as "SectionD08").
Any ideas?