Added example cbd_rand_dist. Generates random numbers and displays distribution.
[C-Programming-Examples.git] / ex_1-12.c
blobdbcc240a84554d7ff31b196739a756c8a8474cd2
1 #include <stdio.h>
3 #define IN 1
4 #define OUT 0
6 main()
9 char c;
10 int spacefound;
12 while ((c = getchar()) != EOF)
14 if(c == ' ' || c == '\n' || c == '\t')
16 if (spacefound == 0)
18 putchar('\n');
19 spacefound = 1;
22 else
24 putchar(c);
25 spacefound = 0;