while loop

int var =0;
int inputPin =10;

void setup()
{
pinMode(inputPin, INPUT);
  Serial.begin(9600); 
}
void loop()
{
  while(var > 200);
  {

    Serial.println(var);
    var++;
  }
}

can any one tell me what syntax i would use insted of the (var>20 )
if i wanted an 5v input from pin 10 to stop the loop

thanks

Try

while(!digitalRead(10)){
  // do something until pin 10 goes HIGH
}

thanks

int var =0;
int inputPin =10;

void setup()
{
  pinMode(inputPin, INPUT);
  Serial.begin(9600); 
}

void loop()
{
  while(var > 200);  <<<<<<<<<<<<<<<<<<< the ; is wrong   remove it 
  {
    Serial.println(var);
    var++;
  }
}
  while(var > 200);  <<<<<<<<<<<<<<<<<<< the ; is wrong   remove it 
  {
    Serial.println(var);
    var++;
  }

Since var starts at 0, the while block will not be executed until loop has been executed 200 times. At that point, the while loop becomes an endless loop, and stops the Arduino from printing to the serial port. Perhaps that IS what OP wanted.

No, I doubt it is that subtle