how to read until newline in 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.. }