get out from a loop

can some one tell me how do do this :-

i need to design a train ticket system like that :-

you have 15 second to press the button ,, and if some one press it , the program should continue to the next command which is the price function ,, and if the 15 second over with out some press the button the system should restart from the beginning of the void loop and not go to the price function . pls guide me

void loop () {

lcd.clear();
lcd.print("Enter Your");
lcd.setCursor(0,1);
lcd.print("Destination");
presstime = millis();
while ((millis() - presstime) < (15000))
{
if ((digitalRead(8)==HIGH))
{
lcd.clear();
lcd.print("Your Destination");
lcd.setCursor(0,1);
lcd.print("Is A");
}

else if ((digitalRead(9)==HIGH))
{
lcd.clear();
lcd.print("Your Destination");
lcd.setCursor(0,1);
lcd.print("Is B");
}

else if ((digitalRead(10)==HIGH)) {
lcd.clear();
lcd.print("Your Destination");
lcd.setCursor(0,1);
lcd.print("Is C");
}

}

presstime = millis();

price(int number)

}

You can use the break; command to get out of a while loop (or any other kind of loop).

And check out the '#' button when posting, it allows code samples to be properly formatted// like this