All pastes #312857 Raw Edit

Someone

public c v1 · immutable
#312857 ·published 2007-01-11 08:07 UTC
rendered paste body
#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);      }    }}