until newline code example
Example: how to input till end of line in c
while((scanf("%d",&n)) != EOF) { printf("%d",n); //other operations with n.. }
while((scanf("%d",&n)) != EOF) { printf("%d",n); //other operations with n.. }