Alayna and Strings

Limits: 1s, 512 MB

Alayna’s father Baba gifted her a nice alphabet book last month. And now Alayna is in love with alphabets. You will be surprised to know that she has learned all the letters and she also knows the capital and small letters of English alphabet!


This is a companion discussion topic for the original entry at https://toph.co/p/alayna-and-strings

WHY get WA in last case??
#include <bits/stdc++.h>

using namespace std;

int main() {
char c[210],a;
int i,len,ccount=0,scount=0;
fgets(c,220,stdin);
len = strlen©;
for(i=0;i<len;i++)
{
if(c[i]>=‘A’ && c[i]<=‘Z’)
ccount++;
else if(c[i]>=‘a’ && c[i]<=‘z’)
scount++;
else
continue;
}
cout<< ccount << " " << scount << endl;

return 0;

}

Try again by removing that “=” sign before ‘z’ and ‘Z’ . My code accepted by removing that.