/* write a program that reads 10 characters and counts the number of lowercase and the number of uppercase letters */ #include int main(){ char ch; int i,lower=0, upper=0; printf("enter 10 characters\n"); for(i=0;i<10;i++){ scanf("%c",&ch); if(ch>='a' && ch<='z') lower++; else if(ch>='A' && ch<='Z') upper++; } printf("lower=%d, upper=%d\n",lower, upper); return 0; }