#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (){
char text[800];
int start=0,bukvi=0,cifri=0,simvoli=0;
printf ("Vuvedete simvoli: ");
gets(text);
for (start=0;start<strlen(text);start++){
switch (text[start]){
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':cifri++; break;
case '!':
case '@':
case '?':
case '.':
case '#':
case '(':
case ')':
case '[':
case ']':simvoli++;break;
case ' ':bukvi--;
default:bukvi++;
}
}
printf ("Vuvedohte %d cifri! \n",cifri);
printf ("Vuvedohte %d simvoli! \n",simvoli);
printf ("Vuvedohte %d bukvi! \n",bukvi);
system ("pause");
return 0;
}