drtask
public c v1 · immutable#include <stdio.h>#define IN 1 /* inside a word */#define OUT 0 /* outside a word */main(){ in c, nw, state; state = OUT; nw = getchar(); while((c = getchar()) != EOF) { if(c == ' ' || c == '\t' || c == '\n') state = OUT; printf(" \n"); else if (state == OUT) { state = IN; printf("\n", nw); }}