#include “stdio.h”
#include “stdlib.h”
#include “conio.h”
int main()
{
int counter_num=0,counter_space=0,counter_other=-1;
char c;
while(1)
{
c=getche();
if (c>=‘0’&&c<=‘9’)
counter_num++;
else if (c==’ ')
counter_space++;
else
counter_other++;
if(c==26)
{
printf("\n\ncounter_num=%d\tcounter_space=%d\t,counter_other=%d\n",counter_num,counter_space,counter_other);
exit(1);
}
}
}