help with servo project !

thanks for the help. I have it now where the program will now wait for you to push the button and then being it's cycle through.

my problem now is to figure out how to get it to stop when the button is released. so example, I push the button, it starts counting 1 to 180 and then I release it at 59. How do I get the program to stop there, so that my LCD will display thats where the servo is stopped. I guess I just need to know the code for telling the Servo to 'stop' or 'rest' right?

#include <Servo.h> 
Servo myservo;  // create servo object to control a servo                 
int pos = 0;    // variable to store the servo position   
int pin = 10;
void setup() 
{ 
  pinMode(pin, INPUT);
  Serial.begin(9600);
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object 
} 
 
 
void loop() 
{ 
if (digitalRead(10) == HIGH)
 { 
  for(pos = 0; pos < 180; pos += 1)  // goes from 0 degrees to 180 degrees 
  {                                     
    myservo.write(pos);              // tell servo to go to position in variable 'pos' 
    delay(15); 
    Serial.println("Current Angle");
    Serial.print(pos);    // waits 15ms for the servo to reach the position 
  } 
  for(pos = 180; pos>=1; pos-=1)     // goes from 180 degrees to 0 degrees 
  {                                
    myservo.write(pos);              // tell servo to go to position in variable 'pos' 
    delay(15);
   Serial.println("Current Angle"); 
Serial.print(pos);    // waits 15ms for the servo to reach the position 
  } 
}
}