This will wait until EITHER button is pressed (assuming the input goes LOW when a button is pressed, which is normal when using INPUT_PULLUP):
while ( (digitalRead(buttonPin) == HIGH) && (digitalRead(buttonPin10) == HIGH) );
This will wait until EITHER button is pressed (assuming the input goes LOW when a button is pressed, which is normal when using INPUT_PULLUP):
while ( (digitalRead(buttonPin) == HIGH) && (digitalRead(buttonPin10) == HIGH) );