diff --git a/KNR Redux/ex1-12.c b/KNR Redux/ex1-12.c new file mode 100644 index 0000000..4446394 --- /dev/null +++ b/KNR Redux/ex1-12.c @@ -0,0 +1,12 @@ +#include + +int main(){ + int c = 0; + while((c = getchar()) != EOF){ + if(c == ' '|| c == '\t'){ + putchar('\n'); + } else + putchar(c); + } +return(0); +}