帮个忙。程序能运行但不知为啥就是不能输出结果,用的是 vc++2008 速成版
#include <stdio.h>int main(void)
{
char ch;
int n = 0;
printf ("Input some characters ending with %: ");
scanf_s ("%c", &ch);
while (ch != '%')
{
if (ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z')
n++;
scanf_s ("%c", &ch);
}
printf ("n = %d\n", n);
return 0;
}