Newbie Question: Make a servo turn 90 degrees and stop.

Baby steps.

So putting the code in the setup is what I want.

I did this....(and several other things) and the server continues to move in one direction and does not stop.

Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created

int pos = 0; // variable to store the servo position

void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
myservo.write(180);
delay(200);
myservo.write(0);
}

void loop()
{

}