diff --git a/1-8.c b/1-8.c new file mode 100644 index 0000000..45c247b --- /dev/null +++ b/1-8.c @@ -0,0 +1,12 @@ +#include +int main() { + int c, nb; + nb = 0; + while ((c=getchar()) != EOF){ + if (c == '\t' || c == '\n' || c == ' '){ + ++nb; + } + } + printf("%d\n", nb); + return 0; +}