Project-Scylla/KNR Redux/ex1-12.c

13 lines
162 B
C
Raw Normal View History

#include <stdio.h>
int main(){
int c = 0;
while((c = getchar()) != EOF){
if(c == ' '|| c == '\t'){
putchar('\n');
} else
putchar(c);
}
return(0);
}