cara input hingga akhir baris di c

while((scanf("%d",&n)) != EOF) { printf("%d",n); //other operations with n.. }
Amused Aardvark