hi people,

I'm supposed to be creating something like a dynamic item number generator.

for example:

FROM: A 1 0 111

TO: B 2 0 112

should produce:

A 1 0 111

A 1 0 112

B 1 0 111

B 1 0 112

this would be quite easy using 4 for loops but the problem is the user should be able to control the length of the input. they can specify how long they want the numbers to be:

length [5]

FROM: A 1 0 1 111

TO: B 1 0 1 112

or

length [7]

FROM: A 1 0 1 111 A 1

TO: B 1 0 1 111 B 2

you get the picture. I'm really stumped and do not know what to do. any help would be really appreciated. thanks!