1
0
mirror of https://github.com/krislamo/knrc.git synced 2024-11-10 00:30:35 +00:00
knrc/10-one-word-per-line.c

15 lines
167 B
C
Raw Normal View History

2021-11-13 05:30:40 +00:00
#include <stdio.h>
int main()
{
int c;
while((c = getchar()) != EOF) {
if (c == ' ' || c == '\n' || c == '\t')
printf("\n");
else
printf("%c", c);
}
}