Okay this programm was taken from K&R book .... after pressing ctrl - z it does not print the number of lines out ??? why i have tried it on 2 compilers Dev-c++ and borland 5.5Code:#include <stdio.h>
main()
{
int c, nl;
nl =0;
while (( c = getchar()) != EOF )
if ( c == '\n' )
++nl;
printf( "%d\n",nl );
}