Help on this while loop please. Thank you!
Hey guys I am creating this code for a ticket machine. The dialog comes up for the user saying how much they want to pay. I want them to pay more than or equal to 60. Which works as I want it. However, how can I execute that piece of code again inside the while loop? because I want if they enter less than 60 the same dialog box appears again.
public class TicketMachine2
{
public int money(int getprice )
{
while (getprice <= 60)
{
}
return 0;
}
}