/*3.编写一个程序,把输入作为字符流读取,直至遇到 EOF。令其报告输入中的大写字母个数和小写字母个数。假设小写字母的数值是连续的,大写字母也是如此。或者你可以使用 ctypc,h 库中的合适的
函数来区分大小写。*/
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
int main()
{
char a;
int big = 0, small = 0;
printf("Please input string:");
while ((a = getchar()) != EOF)
{
if (isupper(a))
big++;
else if (islower(a))
small++;
}
printf("%dbig and %dsmall\n", big, small);
system("pause");
return 0;
}