Servo Control via Serial USB

Please forgive my novice coding skills here. I’m trying to create a servo control that takes in angles input from the Serial Monitor, and turns the servo to that given position. For some reason, whenever I try to type in a number with two digits, the code reads that as two separate numbers and turns the servo to each digit as an angle (from 0 to 9 degrees). I suspect this is a simple coding issue, but any help or advice would be appreciated. Code is appended below.

GEP

PS; Sorry for the double post.

#include <Servo.h>

Servo ServoA;

void setup() 
  {
    Serial.begin(9600);
    ServoA.attach(9);

    Serial.print('Ready for angle prompt!');
    Serial.println();

    Serial.print("Please assign an angle for Servo A [0 to 180 degrees]");
    Serial.println();
  }
  
void loop() 
  {
    if (Serial.available() > 00)
      {
          int AngValA = Serial.read();
          if (AngValA >= '0' && AngValA <= '180' ) 
          {
           AngValA = AngValA - '0';
           ServoA.write(AngValA);
           Serial.print("Servo A set to: ");
           Serial.print(AngValA, DEC);
           Serial.println();
          }    
      }
  }

Some simple servo code you can try using the serial monitor.

// zoomkat 10-4-10 serial servo test
// type servo position 0 to 180 in serial monitor
// for writeMicroseconds, use a value like 1500
// for IDE 0019 and later
// Powering a servo from the arduino usually DOES NOT WORK.

String readString;
#include <Servo.h> 
Servo myservo;  // create servo object to control a servo 

void setup() {
  Serial.begin(9600);
  myservo.attach(7);  //the pin for the servo control 
  Serial.println("servo-test-21"); // so I can keep track of what is loaded
}

void loop() {

  while (Serial.available()) {
    delay(1);  
    if (Serial.available() >0) {
      char c = Serial.read();  //gets one byte from serial buffer
      readString += c; //makes the string readString
    } 
  }

  if (readString.length() >0) {
    Serial.println(readString);  //so you can see the captured string 
    int n;
    char carray[6]; //converting string to number
    readString.toCharArray(carray, sizeof(carray));
    n = atoi(carray); 
    myservo.writeMicroseconds(n); // for microseconds
    //myservo.write(n); //for degees 0-180
    readString="";
  } 
}