Your code as posted does not compile.
Apart from anything else the loop() function starts before the setup() function ends
I strongly suggest that you put each curly bracket in its own line so that you can see the indentation properly
void setup()
{
Serial.begin(9600);
for(i=0; i<12; i++)
{
pinMode(ledPin[i], OUTPUT); // sets the digital pins as output
}
void loop()
{
I would like to have Auto Formatted the code but it won't due to errors in it so I will leave that to you.
I still don't understand what you are trying to do. Can you please explain it again ?