OK I'm trying to have a simple loop which keeps on printing each number from 1,2,... on a different line and it keeps on doing so until the user enters 'e'.

It does not take any input from user and keeps on printing but as soon as user presses e the program exits.Any clue how to go about this.