Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 313 Bytes
#include <stdio.h>
#define IN 0
#define OUT 1
main() {
int c, state;
state = OUT;
while ((c = getchar()) != EOF) {
if (c == ' ' || c == '\n' || c == '\t') {
if (state == IN) {
state = OUT;
putchar('\n');
}
}
else {
state = IN;
putchar(c);
}
}
}