All pastes #802417 Raw Edit

Untitled

public text v1 · immutable
#802417 ·published 2007-11-30 04:05 UTC
rendered paste body
#include <stdio.h>

/* a loop to print every character until EOF  */
main()
{
        int c;

        while ((c = getchar()) != EOF)
            putchar(c);
}


1-9 write a program to copy input to its output, replacing each string of one or more blanks by a single blank.