I\'m totally newbie here. As stated above, I would like to know how to check whether the input string contains combination of uppercase and lowercase. After that print a stateme
unsigned int len = strlen(inputStr);
bool containsUpperCase = false;
bool containsLowerCase = false;
for (int i = 0; i < len && !(containsUpperCase && containsLowerCase); ++i)
{
char c = inputStr[i];
if (c >= 'A' && c <= 'Z')
containsUpperCase = true;
else if (c >= 'a' && c <= 'z'))
containsLowerCase = true;
}
printf("Contains Upper Case: %d Contains Lower Case: %d\n",
containsUpperCase, containsLowerCase);