Serial.parseInt() extra zero problem

I use this code below to get an input from my serial monitor.

int value; 

void setup() {  
  Serial.begin(9600);
}

void loop() {
  /*Serial.println(incomingByte, DEC);
        }*/
  while(Serial.available()==0){
              delay(100);
            }
          value = Serial.parseInt();
          //Serial.read();                       <---------- I have to add this to solve my problem
 Serial.println(value);
}

But I get an extra 0 on the serial monitor after the printing of my value !!!!???? :o

So I had to put a Serial.read() after the Serial.parseInt() to get rid of the extra 0 !

That code will not compile due to an undeclared variable.

Serial.println(incomingByte, DEC);

How do you expect to print the incoming byte before you read the serial port? What value will incomingByte hold?

The way that you try to read from the serial port could use some improvement. The serial input basics tutorial shows simple and robust ways to use a serial port.

Sorry ! This line is no need for this post !

What have you get the line ending set to in the Serial monitor ?

You seem to be right !

I have new line option on in serial monitor !

Thanks !

I assume that you know what to do about it