include stdio include conio -------------------- --------------------

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <stdio.h>
#include <conio.h>
//---------------------------------------------------------------------------
void main()
{int i;
char c, Stroka[10];
i = 0;
while((c = getchar()) != EOF)
if(c != '\n')
if(i > 9)
i++;
else
{
Stroka[i] = c;
i++;
}
else
if(i > 9)
{
printf(">10: %s", Stroka);
printf(" + %d symbols", i - 9);
printf("\n");
i = 0;
}
else
i = 0;
if(i > 9)
{
printf(">10: %s", Stroka);
printf(" + %d symbols", i - 9);
printf("\n");
i = 0;
}
else
i = 0;
getch();
}