blob: 3bb16adc08605779fc008196a00f47de2a4eb525 (
plain) (
tree)
|
|
#include <stdio.h>
int main() {
int c, nb;
char inWord = 0;
while ((c = getchar()) != EOF) {
if (c == ' ' || c == '\n' || c == '\t') {
inWord = 0;
}
else if (inWord == 0) {
putchar('\n');
inWord = 1;
}
putchar(c);
}
return 0;
}
|