include stdio main long nc nc while getchar EOF nc printf ld nc

1
2
3
4
5
6
7
8
9
#include <stdio.h>
main()
{
long nc;
nc=0;
while (getchar()!=EOF)
++nc;
printf("%ld\n",nc);
}