All pastes #767865 Raw Edit

Unnamed

public c v1 · immutable
·published 2007-11-10 02:36 UTC
rendered paste body
#include <stdio.h>/* program to count number of tabs, blank spaces, and new line characters (\t, , \n). */main() {int grab, tab, blank, new;tab = blank = new = 0;  /* sets all values to zero */printf("counts some obscure characters.\n");while((grab = getchar()) != EOF) { /* suspected errorious code \/ */        switch(grab){             case '\t':                  tab++;                  break;             case ' ':                  blank++;                  break;             case '\n':                  new++;                  break;             default:        } // See what I mean?  >:|}printf("%d tabs, %d spaces, %d new lines\nBaud is dumb for ignoring when I pasted this the first time\n", tabs, spaces, new);return 0;}