I am using the following C code to take input from user until EOF occurs, but problem is this code is not working, it terminates after taking first input. Can anyone tell me
as a starting point you could try replacing
while(!EOF)
with
while(!feof(stdin))