sorry
#include<stdio.h>
int main()
{
int letter(char);
int dight(char);
int space(char);
char str[100];
gets_s(str,100);
int m, n, z;
m = letter(str[100]);
n = dight(str[100]);
z = space(str[100]);
printf("letter=%d,dight=%d,space=%d", m, n, z);
return 0;
}
int letter(char)
{
char str[100];
gets_s(str,100);
int i = 0,count = 0;
while (str[i] != '\0')
{
if ((str[i] >= 65 && str[i] <= 90) || (str[i] >= 97 && str[i] <= 122))
{
count++;
}
i++;
}
return count;
}
int dight(char)
{
char str[100];
gets_s(str, 100);
int i = 0, count = 0;
while (str[i] != '\0')
{
if (str[i] >= 48&&str[i]<=57)
{
count++;
}
i++;
}
return count;
}
int space(char)
{
char str[100];
gets_s(str, 100);
int i = 0, count = 0;
while (str[i] != '\0')
{
if (str[i] == 32)
{
count++;
}
i++;
}
return count;
}