diff options
Diffstat (limited to '1/12.c')
| -rw-r--r-- | 1/12.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#include <stdio.h> + +/* prints input one word per line */ +int main(int argc, char *argv[]) { + int c; + + while ((c = getchar()) != EOF) { + if (c == ' ' || c == '\t') + putchar('\n'); + else + putchar(c); + } + + return 0; +}
\ No newline at end of file |
