int nota;
void setup() {
Serial.begin(9600);
// put your setup code here, to run once:
}
void loop() {
nota = Serial.parseInt();
if(Serial.available()>0) {
if (nota >= 90) {
Serial.println("Excelente");
} else if (nota >= 70) {
Serial.println("Aprobado");
} else {
Serial.println("Reprobado");
}
}
}