#include <stdio.h>
/* подcчет цифр, cимволов-разделителей и прочих cимволов */
int main()
{
int c, i, nwhite, nother, letters;
int ndigit[10];
nwhite = nother = letters= 0;
for (i = 0; i < 10; ++i)
ndigit[i]= 0;
if (c >= '0' && c <= '9' )
++ndigit[c - '0' ];
else if (c == ' ' || c == '\n' || c == '\t')
++nwhite;
else if ( c == 'a'||c =='b'||c =='c'||c =='d'||c =='e'||c =='f'||c =='g'||c =='h'||c =='j'||c =='k'||c =='l'||c =='q'||c =='w'||c =='r'||c =='t'||c =='y'||c =='u'||c =='i'||c =='o'||c =='p'||c =='s'||c =='z'||c =='x'||c =='v'||c =='n'||c =='m'||c =='A'||c =='S'||c =='D'||c =='F'||c =='G'||c =='H'||c =='J'||c =='K'||c =='L'||c =='Z'||c =='X'||c =='C'||c =='V'||c =='B'||c =='N'||c =='M'||c == 'Q'||c =='W'||c =='E'||c =='R'||c =='T'||c =='Y'||c =='U'||c =='I'||c =='O'||c =='P')
++ letters;
else
++nother;
for (i=0; i < 10; ++i)
printf (", cимволы-разделители = %d, буквы= %d, прочие = %d\n", nwhite
,letters
, nother
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8qINC/0L7QtGPRh9C10YIg0YbQuNGE0YAsIGPQuNC80LLQvtC70L7Qsi3RgNCw0LfQtNC10LvQuNGC0LXQu9C10Lkg0Lgg0L/RgNC+0YfQuNGFIGPQuNC80LLQvtC70L7QsiAqLyAKaW50IG1haW4oKQp7CiAgICBpbnQgYywgaSwgbndoaXRlLCBub3RoZXIsIGxldHRlcnM7CiAgICBpbnQgbmRpZ2l0WzEwXTsKICAgIG53aGl0ZSA9IG5vdGhlciA9IGxldHRlcnM9ICAwOwogICAgZm9yIChpID0gMDsgaSA8IDEwOyArK2kpCiAgICAgICAgbmRpZ2l0W2ldPSAwOwogICAgd2hpbGUgKChjID0gZ2V0Y2hhcigpKSAhPSBFT0YpCiAgICAgICAgaWYgKGMgPj0gJzAnICYmIGMgPD0gJzknICkKICAg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