Does this code look okay?
#include <stdio.h>
#include <ctype.h>
int case_letters();
int main(void)
{
case_letters();
return 0;
}
int case_letters()
{
int ch;
int numOfUpper = 0;
int numOfLower = 0;
printf("please enter a some characters, and ctrl + d to see result\n");
while ((ch = getchar()) != EOF)
{
if (isdigit(ch))
{
printf("please enter a valid character\n");
continue;
}
else if (isupper(ch))
{
numOfUpper++;
}
else if (islower(ch))
{
numOfLower++;
}
}
return printf("There are %d Uppercase letters, and %d Lowercase letters\n", numOfUpper, numOfLower);
}