LED Sequencer Code

I want to sequence through 6 LED's and I have written this code, but it does not seem to work. here is the code:

int ledpin[] = {3 ,4 ,5 ,6 ,7 ,8};

// The setup() method runs once, when the sketch starts

void setup() {
// initialize the digital pin as an output:
for(int i = 3; i == 8; i++)
pinMode(ledpin*, OUTPUT);*
}
// the loop() method runs over and over again,
// as long as the Arduino has power
*void loop() *
{

  • for(int i = 3; i == 8; i++)*
  • {*
    _ digitalWrite(ledpin*, HIGH);_
    _
    delay(250);_
    _
    }*_

* for(int i = 8; i == 3; i--)*
* {*
_ digitalWrite(ledpin*, LOW);
delay(250);
}*_

}

I realized my index's where wrong in my array's, but that still has not fixed my problem

any help would be great

ok it works

thanks here is the code:

int ledpin[6] = {3 ,4 ,5 ,6 ,7 ,8};

// The setup() method runs once, when the sketch starts

void setup() {
// initialize the digital pin as an output:
for(int i = 0; i <= 5; i++)
pinMode(ledpin*, OUTPUT); *
}
// the loop() method runs over and over again,
// as long as the Arduino has power
*void loop() *
{

  • for(int i = 0; i <= 5; i++)*
  • {*
    _ digitalWrite(ledpin*, HIGH);_
    _
    delay(250);_
    _
    }*_

* for(int i = 5; i >= 0; i--)*
* {*
_ digitalWrite(ledpin*, LOW);
delay(250);
}*_

}