blinking LED's in series, trying it in c way

And my final product, thanks everybody for reading my posts. Led blinking in series, that means led 1 blinks then led 2 then led 3 to led 12 and then back again.

long long counter = 1000;
int main () {
  int ledPin; //maybe i should have picked only one, tried several versions and this logic worked in my head the most
  int oldVal;
  while(1) {
  for( oldVal=2; oldVal <= 12; oldVal++)  {
    ledPin=oldVal;
    pinMode(ledPin, OUTPUT);
    digitalWrite(ledPin, HIGH);
    
   while(counter < 100000) {     //just a manual delay funct cuz the original one did not work at all
    counter++;
    }
    digitalWrite(ledPin, LOW);
    
    counter=0; //reset which i added
    }
  

  
  for( oldVal=12; oldVal >= 2; oldVal--)  {
    ledPin=oldVal;
    pinMode(ledPin, OUTPUT);
    digitalWrite(ledPin, HIGH);
    
   while(counter < 100000) {     //just a manual delay funct cuz the original one did not work at all
    counter++;
    }
    
    
    counter=0; //reset which i added
    digitalWrite(ledPin, LOW);
    }
} 


  
  
  
  return 0;
}