Get your user input first. Number of CPUs, and which range.
First loop goes through the programs. If there's 18 programs, it goes for 18 iterations.
Second loop's iterator variable starts and the starting range variable that you inputted eariler, and goes to the end of the range of CPUs. Inside this loop, you can reference program/cpu by using the first loop's iterator variable / this loop's iterator.
Hope this helps
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339