MIPI_BaseC_WebinarFRTK/09_Lecture09/07_words_p23.c

15 lines
240 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
int main(void)
{
char s[100];
int count=0;
while(scanf("%s",s)==1)
{
count++;
printf("In this text %d words\n",count);
}
//printf("In this text %d words\n",count);
return 0;
}