String name;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Name;Geburtsjahr;");
while(!Serial.available()) {}
name = Serial.readStringUntil(';');
int jahr = Serial.readStringUntil(';').toInt();
Serial.println("Hallo " + name + " du bist etwa " + (2023-jahr) + " Jahre alt.");
name.trim();
}