while(char ch[]!={'E''n''d'})怎么改?

#include
int main()
{
char ch[100];//This string has at most 19 characters and one character for '\0'.
int i=0;//Initialization.
int j;
printf("Please input a line of sentence: \n");//Input the string.
do
{
gets(ch);//Read the input.
}
while(char ch[]!={'E''n''d'});

if((ch[0]>='a'&&ch[0]<='z')||(ch[0]>='A'&&ch[0]<='Z'))
{
    j=1;
}
else
{
    j=0;
}

for(i=1;i<100;i++)
{
    if(((ch[0]>='a'&&ch[0]<='z')||(ch[0]>='A'&&ch[0]<='Z'))&&(ch[i-1]==' '))
    {
        j++;
    }
}

printf("the output is:%d",j);
return 0;

}

while(strcmp(ch, "END") != 0)