Input from serial monitor

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

void loop() {
  while (!Serial.available());
 per=Serial.parseInt();  
  Serial.println(per);
  }

On the serial monitor, for every input from the keyboard, I am receiving a zero. How do I eliminate it?

prob4.JPG

prob3.JPG

prob2.JPG

prob1.JPG

Look at what you have got set as the line ending in the IDE

Thank you! :slight_smile: