Write a program which reads
its input and counts the number of
characters and the number of spaces
(where a space is either a blank or
a tab or a newline). Print both numbers.
Compile, test, and type "ready".
hoboken harrison newark roseville avenue grove street
east orange brick church orange highland avenue
mountain station south orange maplewood millburn short hills
summit chatham madison convent station morristown
new providence murray hill berkeley heights
gillette stirling millington lyons basking ridge
bernardsville far hills peapack gladstone
grep 348 x1 >/dev/null && grep 45 x2 >/dev/null
while ((c = getchar()) != EOF) {
if (c == ' ' || c == '\t' || c == '\n')
printf("spaces = %d, chars = %d\n", nspace, nchar);