Problem reading numbers from serial monitor

Trying to follow one of Paul McWhorter's tutorials. Have checked that my program is written just like his. But when I put in the number to be read on the serial monitor it shows up, but a new line is added giving the number 0 (with no input from me). The attached screen shot will give you an idea of what I'm getting. I'm a newbie. Any help is appreciated.

I've no idea what tutorial you are using but what does it say line ending should be set to in the serial monitor?

Change it from new line to none. If that doesn't work try each of the other options.

And please post code not an image of code.

Change the bottom box with 'newline' to 'no line ending'

To: Perry Bebbington: I'm new to all this. How do I post code instead of the image of code?

In the IDE, Use Edit->Copy for Forum then open your post for editing, and Paste using ctrl-V. When you do that, it adds the code tags automatically.

Use the Code Tags button, </>on the menu, and copy/paste your code into the box that opens:

so it looks like this

Set line endings in serial monitor to none.

Thank you all.

Does it work?