// scanEOF.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main() { int n; int array[25]; while (scanf("%d",&n)!=EOF) { for (int i=0; i<n; i++) scanf("%d",array+i); for ( i=0; i<n; i++) printf ("%d ",array[i]); } printf ("EOF:%d \n",EOF); return 0; } /* ^Z EOF:-1 Press any key to continue */