void setup() {
for (int pin=4; pin < 14; pin++) {
  pinMode(pin, OUTPUT);
  digitalWrite(pin, LOW);
}
}

void loop() {
 for (int pin=4; pin < 14; pin++) {
  digitalWrite(pin, HIGH);
  delay(100);
  digitalWrite(pin, LOW);
 }
}