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'.
e.g
for(i=0;i<=9999999999;i++)
{
printf("%d\n",i);
}

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.