Pause loop until a task is complete

I finally got it

void setup() {

Serial.begin(9600);
// put your setup code here, to run once:

// put your main code here, to run repeatedly:

}

void loop()
{
int x1,y1;
Serial.println(" Enter x ");
if(Serial.available())
{ x1=Serial.parseInt();
Serial.println("x is");
Serial.println(x1);
}
delay(100);
if(x1>0)
{
line11: Serial.println(" Enter y");
delay(100);

if(Serial.available())
{ y1=Serial.parseInt();
Serial.println("y is");
Serial.println(y1);
Serial.print("\n");
delay(100);
}
else
{
goto line11;
delay(100);
}
}
delay(1000);
}