Untitled
public text v1 · immutablecat line.c
#include <stdio.h>
/* count lines in input */
main()
{
int c;
while ((c = getchar()) != EOF) {
if (c++ != ' ')
printf("%d\n", c);
}
}
1-9 write a program to copy input to its output, replacing each string of one or more blanks by a single blank.