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
while(scanf("%d %d",a,b)!=EOF) { //do ..... }