// constants (or #define with no ; at end of line) won't change. They're used here to set pin numbers:
#include <Servo.h>

int servoPin = 9;
int servoPos ;
Servo myServo;

// Variables will change:

void setup() {
Serial.begin(115200);
pinMode (servoPin, OUTPUT);  
myServo.attach(servoPin);

}

void loop() {
Serial.println("What angle doopy?");
while (Serial.available()==0)  {

}
servoPos = Serial.parseInt();
myServo.write(servoPos);


}