Help! how to run mutiple same program or divide them to different groups?

SOLVED!!!! THANKS

use a sub-function with 3 arguments, the pins in each group and call that function from a new loop() 3 times, once with each group of pins. you might add a 4th argument, a text label describing the group

gcjr:
use a sub-function with 3 arguments, the pins in each group and call that function from a new loop() 3 times, once with each group of pins. you might add a 4th argument, a text label describing the group

Thanks a lot! solved!!!!!!