Putting Sketches together

Hi can any one tell me how to put these two sketche in the loop sketch to make them work

void setup(){
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
}

void loop(){

digitalWrite(2, HIGH);
delay(100);
digitalWrite(3, HIGH);
delay(100);
digitalWrite(4, HIGH);
delay(100);
digitalWrite(5, HIGH);
delay(100);
digitalWrite(6, HIGH);
delay(100);
digitalWrite(7, HIGH);
delay(100);
digitalWrite(8, HIGH);
delay(100);
digitalWrite(9, HIGH);
delay(100);
digitalWrite(10, HIGH);
delay(100);
digitalWrite(11, HIGH);
delay(100);
digitalWrite(11, LOW);
delay(100);
digitalWrite(2, LOW);
delay(100);
digitalWrite(10, LOW);
delay(100);
digitalWrite(3, LOW);
delay(100);
digitalWrite(9, LOW);
delay(100);
digitalWrite(4, LOW);
delay(100);
digitalWrite(8, LOW);
delay(100);
digitalWrite(5, LOW);
delay(100);
digitalWrite(6,LOW);
delay(100);
digitalWrite(7, LOW);
delay(100);
}


[/void setup(){
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
}

void loop(){

digitalWrite(2, HIGH);
delay(100);
digitalWrite(3, HIGH);
delay(100);
digitalWrite(4, HIGH);
delay(100);
digitalWrite(5, HIGH);
delay(100);
digitalWrite(6, HIGH);
delay(100);
digitalWrite(7, HIGH);
delay(100);
digitalWrite(8, HIGH);
delay(100);
digitalWrite(9, HIGH);
delay(100);
digitalWrite(10, HIGH);
delay(100);
digitalWrite(11, HIGH);
delay(100);
digitalWrite(11, LOW);
delay(100);
digitalWrite(2, LOW);
delay(100);
digitalWrite(10, LOW);
delay(100);
digitalWrite(3, LOW);
delay(100);
digitalWrite(9, LOW);
delay(100);
digitalWrite(4, LOW);
delay(100);
digitalWrite(8, LOW);
delay(100);
digitalWrite(5, LOW);
delay(100);
digitalWrite(6,LOW);
delay(100);
digitalWrite(7, LOW);
delay(100);
}


void setup(){
  
}

int loopMax = 500;
//variable in case you want to adjust the times for each one using input mechanism

void runPattern1(){
  delay(100);
}
void runPattern2(){
  delay(100);
}
void runPattern3(){
  delay(100);
}

void loop(){

   for( int i = 0 ; i < loopMax  ; i++ ){
    runPattern1();
   }

   for( int i = 0 ; i < loopMax  ; i++ ){
    runPattern2();
   }

   for( int i = 0 ; i < loopMax  ; i++ ){
    runPattern3();
   }

}

Well, you're allowed (hell, encouraged) to use "for" loops.

to make them work

Tell us what "work" means to you.

for loops...

look at this, and I'm sure you'll be able to figure the rest out.

for([initial condition]; [logic condition]; [what happens at the end of each loop])

ie...
uint16_t i;
for(i = 2; i<=11; i++) {
pinMode(i, OUTPUT);
}

becomes...
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(3, OUTPUT);
...
pinMode(11, OUTPUT);