how to scan until end of line c 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.. }