int main(void)
{
string s = get_string();
if ((s[0] >= 'A' && s[0] <= 'Z') || (s[0] >= 'a' && s[0] <= 'z')) printf("%c", toupper(s[0])); //print first letter in uppercase printf("%c", toupper(s[0]));
for (int i = 0, n = strlen(s); i < n; i++)
while (s[i] == ' ' || s[i] == '\0')
{
i++;
if (s[i] != ' ') printf("%c", toupper(s[i]));
}
printf("\n");
}
check50 shows error:
“:( Outputs HJ for hailey James
:( Outputs HJ for hailey James”
What problem I have? Help me, please)