MIPI_BaseC_WebinarFRTK/06_Lecture06/14_fsm_p40.c

14 lines
309 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
int main() {
int c;
do {
c = getchar();
while (c == ' ') c = getchar();
while (c != ' ' && c != '\n' && c != EOF) putchar(c), c = getchar();
putchar('\n');
while (c != '\n' && c != EOF) c = getchar();
} while (c != EOF);
return 0;
}