1.
#include<stdio.h>
int main()
{
int i,upper=0,lower=0;
char str[17]={'A','a','a','a','B','B','b','1','2','3','C','C','c','c','c','c','d'};
for(i=0;i<17;i++)
{
if(str[i]>=65 && str[i]<=90)
upper++;
else if(str[i]>=97 && str[i]<=122)
lower++;
}
printf("upper=%d,lower=%d\n",upper,lower);
}
#include<stdio.h>
int main()
{
int i,upper=0,lower=0;
char str[17]={'A','a','a','a','B','B','b','1','2','3','C','C','c','c','c','c','d'};
for(i=0;i<17;i++)
{
if(str[i]>=65 && str[i]<=90)
upper++;
else if(str[i]>=97 && str[i]<=122)
lower++;
}
printf("upper=%d,lower=%d\n",upper,lower);
}