In python
>>> for ACONTROL in [1,10,24]:
... for ASECTION in [2,10,20]:
... print"00{}-0{}".format(ACONTROL,ASECTION)
...
001-02
001-010
001-020
0010-02
0010-010
0010-020
0024-02
0024-010
0024-020
>>>
or do you want the first condition to read 0001-02 (line 5) and the one on line 11 to read 0024-002?