arduino examples/Loop iteraion

Antar7:
Hello there, I tried to rewrite the loop iteration example code on arduino according to my understanding. Please correct
int timer = 100;
int thisPin = 2;

void setup() {
pinMode(thisPin, OUTPUT);
}
} // delete this one
void loop() {

for (thisPin < 8; thisPin++) {
digitalWrite(thisPin, HIGH);
delay(timer);
digitalWrite(thisPin, LOW);
} // delete this one also

for thisPin < = 7; thisPin--) {
digitalWrite(thisPin, HIGH);
delay(timer);
digitalWrite(thisPin, LOW);
}
} // again delete this, what's with not getting the matching { } correct ?